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.
Once invoked, emacs-anywhere will open a buffer. Close it and its contents are copied to your clipboard and your previous application is refocused.
OSX:
- Emacs with GUI (
brew install emacs --with-cocoa
)
curl -fsSL https://raw.github.com/prathik/emacs-anywhere/master/install | bash
OSX caveat: key binding is unbound by default. See keybinding for details.
~/.emacs-anywhere/update
~/.emacs-anywhere/uninstall
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:
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 )
Pull requests, suggestions and issues of any kind are welcome with open arms.
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.
MIT.