Switch to emacsclient fully with aliases and everything

This commit is contained in:
David Holland 2022-10-16 15:59:59 +02:00
parent e5051898b2
commit bb915b4e59
Signed by: DustVoice
GPG Key ID: 47068995A14EDCA9
6 changed files with 16 additions and 2 deletions

View File

@ -1,5 +1,7 @@
set -gx LANG "en_US.UTF-8"
set -gx EDITOR "nvim"
set -gx ALTERNATE_EDITOR ""
set -gx EDITOR "emacsclient -ut"
set -gx VISUAL "emacsclient -uc"
set -gx TERMINAL "alacritty"
set -gx GIT_PAGER "delta"
set -gx DOOMPAGER "delta"

View File

@ -0,0 +1,3 @@
function em --wraps='emacsclient -a "" -nc' --description 'Start emacsclient (+daemon if neccessary)'
emacsclient -a "" -nc $argv;
end

View File

@ -0,0 +1,3 @@
function ems --wraps='emacsclient -a "" -nc "/sudo:root@localhost:"' --description 'Start emacsclient (+daemon if neccessary) with sudo'
emacsclient -a "" -nc "/sudo:root@localhost:$argv";
end

View File

@ -0,0 +1,3 @@
function et --wraps='emacsclient -a "" -t' --description 'Start emacsclient (+daemon if neccessary) in terminal mode'
emacsclient -a "" -ut $argv;
end

View File

@ -0,0 +1,3 @@
function ets --wraps='emacsclient -a "" -t "/sudo:root@localhost:"' --description 'Start emacsclient (+daemon if neccessary) in terminal mode with sudo'
emacsclient -a "" -ut "/sudo:root@localhost:$argv";
end

View File

@ -4,7 +4,7 @@
signingkey = 7A9CA430D426100E
[core]
editor = nvim
editor = emacsclient -a "" -ut
pager = delta
[interactive]