oh-my-fish/plugins/emacs/functions/__kill_emacs.fish
Kelvin Smith 55a2e6d003 Add emacs plugin (updated)
Updated in response to comments from @bucaran

Port of oh-my-zsh emacs plugin.
Includes a function to kill emacs from command line once
a daemon has started.

More information included in plugins/emacs/README.md.

See reference plugin here:
https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/emacs
2015-04-01 10:22:44 +05:30

4 lines
96 B
Fish

function __kill_emacs
emacsclient --alternate-editor '' --eval '(kill-emacs)' 2>/dev/null
end