Git Product home page Git Product logo

emacs-anywhere's Introduction

Inspired by cknadler/vim-anywhere

What it does

A keyboard shortcut of your choosing creates a temporary frame and buffer. The text is automatically inserted into the application your using. Bust your moves on the fly, with fewer keystrokes. Invoke the shortcut with selected text and it will be replaced.

Install

OSX

  1. Clone the repo
git clone https://github.com/zachcurry/emacs-anywhere.git
  1. Run the install script
./emacs-anywhere/install
  1. Open System Preferences and navigate to keyboard > shortcuts > Services. Check the box beside "Emac Anywhere" and click "Add Shortcut" and key a shortcut.

Linux (alpha)

The Linux implementation requires xdotool be installed. Install as needed.

sudo apt-get xdotool
  1. Clone the repo
git clone https://github.com/zachcurry/emacs-anywhere.git
  1. Run the install script
./emacs-anywhere/install
  1. Create a keyboard shortcut with this command $HOME/.emacs_anywhere/bin/run

Windows

TBD

How to

Invoke the shortcut. A new frame will be created and display an empty buffer titled *Emacs Anywhere*. When the frame is deleted the buffer's content is inserted into the application you're using and the buffer is deleted. Any text selected when the keyboard shortcut is invoked will be replaced.

Uninstall Emacs Anywhere by running the uninstall script in the root of the repo

./uninstall

Slow?

If your Emacs server isn't running when you use the keyboard shortcut Emacs Anywhere will start it, but this slow. Run Emacs as a daemon (emacs --daemon) to start your server from the command line, or use server-start command in Emacs. Once you've a got a running server new frames are created much faster.

TODO

  • Emacs command to toggle Emacs Anywhere
  • Homebrew
  • Windows

Contributing

Have a question? Like the tool? Don't like it? Open an issue and let's talk about it! Pull requests are appreciated!

Copyright © 2018, Zach Curry, All rights reserved.

emacs-anywhere's People

Contributors

jacobmealey avatar zachcurry avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.