shuangcui c8ba08581d docs: fix typos (#12284) | 8 ماه پیش | |
---|---|---|
.. | ||
README.md | 8 ماه پیش | |
emacs.plugin.zsh | 8 ماه پیش | |
emacsclient.sh | 1 سال پیش |
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.
NOTE: requires Emacs 24 and newer.
To use it, add emacs to the plugins array in your zshrc file:
plugins=(... emacs)
The plugin uses a custom launcher (which we'll call here $EMACS_LAUNCHER
) that is just a wrapper around 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 current buffer |