Skip to content

Instantly share code, notes, and snippets.

@antoineMoPa
Last active November 28, 2020 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoineMoPa/31b8c9970cdf9fb6a6e6b767a6aa51fe to your computer and use it in GitHub Desktop.
Save antoineMoPa/31b8c9970cdf9fb6a6e6b767a6aa51fe to your computer and use it in GitHub Desktop.

Emacs-E - the idea :

Quickly open any file in my already opened emacs

Emacs config

Tell emacs to be a server in your .emacs:

(server-mode)

This is equivalent to calling M-X server-mode every time you open emacs.

Bash config (.bashrc)

alias e="emacsclient -n"

Using e

When you already have an emacs window open and want to open a file in emacs (example with ReadMe.md)

e ReadMe.md

Now Emacs will focus and open the file!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment