Start/kill the Emacs daemon fast and easily in rofi/dmenu
If you are a rofi
user, use the script under rofi
directory; if you use dmenu
, use the script under dmenu
directory.
Usage: - start: Choose the Emacs server and start the client to communicate it. - kill: Choose the Emacs server to kill.
Usage '<script-name> start': - -d <dir> or --server-dir <dir> - Specify the directory where Emacs server sockets live, default is '/run/user/1000/emacs/'. - -t, -nw, --tty - Create the client frame on the current terminal
Usage '<script-name> kill': - -d <dir> or --server-dir <dir> - Specify the directory where Emacs server sockets live, default is '/run/user/1000/emacs/'.
You still can pass environment variables into Emacs, like:
LC_CTYPE=zh_TW.UTF-8 TERM=xterm-direct ./rofi/emacs-daemon.sh start
These variables are for my input method and true color support.
If you find the emacsclient can not start normally, it probably because the permission of the socket directory is not 700: