diff options
Diffstat (limited to '')
-rw-r--r-- | bashrc | 5 | ||||
-rw-r--r-- | systemd/emacs.service | 13 |
2 files changed, 17 insertions, 1 deletions
@@ -27,7 +27,10 @@ export PATH=~/bin/:$PATH # nvim as vim #alias vim='/usr/bin/nvim' # alias vi='/usr/bin/vim' -export EDITOR=vim +# export EDITOR=vim +export ALTERNATE_EDITOR="" +export EDITOR="emacsclient -t" # $EDITOR opens in terminal +export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI mode # openai keys source $HOME/dotfiles/openai_key diff --git a/systemd/emacs.service b/systemd/emacs.service new file mode 100644 index 0000000..d228c89 --- /dev/null +++ b/systemd/emacs.service @@ -0,0 +1,13 @@ +[Unit] +Description=Emacs text editor +Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ + +[Service] +Type=forking +ExecStart=/usr/bin/emacs --daemon +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" +Environment=SSH_AUTH_SOCK=%t/keyring/ssh +Restart=on-failure + +[Install] +WantedBy=default.target
\ No newline at end of file |