Skip to content

prathik/emacs-anywhere

Repository files navigation

emacs-anywhere

Why?

Many times you'd like to edit or create content on Emacs and then put it somewhere else. This process is made seamless. Hit the keyboard shortcut to load emacs and when you save and quit that content will be copied on to the clipboard.

emacs-anywhere is currently built for Mac OSX.

demo

Once invoked, emacs-anywhere will open a buffer. Close it and its contents are copied to your clipboard and your previous application is refocused.

Installation

Requirements

OSX:

  • Emacs with GUI (brew install emacs --with-cocoa)

Install

curl -fsSL https://raw.github.com/prathik/emacs-anywhere/master/install | bash

OSX caveat: key binding is unbound by default. See keybinding for details.

Update

~/.emacs-anywhere/update

Uninstall

~/.emacs-anywhere/uninstall

Keybinding

OSX: ( default = unbound, suggested = ctrl+cmd+v )

The keyboard shortcut for invoking emacs-anywhere is unbound by default on OSX. The installation script will automatically open System Preferences > Keyboard > Shortcuts. Fill in the following:

keyboard shortcut

History

emacs-anywhere creates a temporary file in /tmp/emacs-anywhere when invoked. These files stick around until you restart your system, giving you a temporary history.

View your history:

$ ls /tmp/emacs-anywhere

Reopen your most recent file:

$ emacs $( ls /tmp/emacs-anywhere | sort -r | head -n 1 )

Contributing

Pull requests, suggestions and issues of any kind are welcome with open arms.

Credits

emacs-anywhere is inspired from cknadler/vim-anywhere and is a fork of it to work on emacs. Shout out to @cknadler for his awesome work on vim-anywhere.

License

MIT.

Releases

No releases published

Packages

No packages published