X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Femacs%2FREADME.md;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Femacs%2FREADME.md;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=c8e33b5ab485428fb6ec83b3525513bc6422dc42;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/emacs/README.md b/stow/oh-my-zsh/.oh-my-zsh/plugins/emacs/README.md deleted file mode 100644 index c8e33b5..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/emacs/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# Emacs plugin - -This plugin utilizes the Emacs daemon capability, allowing the user to quickly open frames, whether they are opened in a terminal via a ssh connection, or X frames opened on the same host. The plugin also provides some aliases for such operations. - -- You don't have the cost of starting Emacs all the time anymore -- Opening a file is as fast as Emacs does not have anything else to do. -- You can share opened buffered across opened frames. -- Configuration changes made at runtime are applied to all frames. - -**NOTE:** requires Emacs 24 and newer. - -To use it, add emacs to the plugins array in your zshrc file: - -```zsh -plugins=(... emacs) -``` - -## Aliases - -The plugin uses a custom launcher (which we'll call here `$EMACS_LAUNCHER`) that is just a wrapper around [`emacsclient`](https://www.emacswiki.org/emacs/EmacsClient). - -| Alias | Command | Description | -|--------|----------------------------------------------------|----------------------------------------------------------------| -| emacs | `$EMACS_LAUNCHER --no-wait` | Opens a temporary emacsclient frame | -| e | `emacs` | Same as emacs alias | -| te | `$EMACS_LAUNCHER -nw` | Open terminal emacsclient | -| eeval | `$EMACS_LAUNCHER --eval` | Same as `M-x eval` but from outside Emacs | -| eframe | `emacsclient --alternate-editor "" --create-frame` | Create new X frame | -| efile | - | Print the path to the file open in the current buffer | -| ecd | - | Print the directory of the file open in the the current buffer |