mirror of https://github.com/deuill/dotfiles.git
Make TTY emacsclient the default EDITOR
This commit is contained in:
parent
822fec51a8
commit
19d05aec22
|
@ -1,6 +1,7 @@
|
|||
# Set default system-wide editor.
|
||||
EDITOR=emacs
|
||||
EMACS_SOCKET_NAME=main
|
||||
VISUAL="emacsclient --socket-name=main --alternate-editor=emacs --tty"
|
||||
EDITOR="$VISUAL"
|
||||
EMACS_SOCKET_NAME=server
|
||||
|
||||
# Desktop settings.
|
||||
XDG_CURRENT_DESKTOP=sway
|
||||
|
|
|
@ -6,6 +6,7 @@ PartOf=graphical-session.target
|
|||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
Environment=DISPLAY=
|
||||
ExecStart=/usr/bin/emacs --fg-daemon=main
|
||||
ExecStop=/usr/bin/emacsclient --socket-name=main --eval "(kill-emacs)"
|
||||
|
||||
|
|
Loading…
Reference in New Issue