psibi / emacs-everywhere

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 you're using. Bust your moves on the fly, with fewer keystrokes. Invoke the shortcut with selected text and it will be replaced.

Note that this is a fork of emacs_anywhere but with a better support for Linux. See Faq for more details.

Install

OSX

curl -fsSL https://raw.github.com/psibi/emacs-everywhere/master/install | bash

Open System Preferences and navigate to keyboard > shortcuts > Services. Check the box beside "Emacs Everywhere" and click "Add Shortcut" and key a shortcut.

Linux

dependencies: xdotool

Install as needed

sudo apt-get install xdotool

Installation

curl -fsSL https://raw.github.com/psibi/emacs-everywhere/master/install | bash

Create a keyboard shortcut with this command $HOME/.emacs_everywhere/bin/run

Windows

TBD

How to

Invoke the shortcut. A new frame will be created and display an empty buffer titled *Emacs Everywhere*. 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.

Update

~/.emacs_everywhere/update

Uninstall

~/.emacs_everywhere/uninstall

Slow?

If your Emacs server isn't running when you use the keyboard shortcut, Emacs Everywhere will start it (this is slower). 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 Everywhere
  • Homebrew
  • Windows

FAQ

Why the fork ?

Because the orignal maintainer didn't want to a non clipboard based approach for Linux systems. See these issues for more details:

Contributing

All contributions and pull requests are welcome.

Copyright © 2018, Sibi Prabakaran & Zach Curry, All rights reserved.

About

License:MIT License


Languages

Language:Shell 78.1%Language:Emacs Lisp 21.9%