Switch to emacsclient fully with aliases and everything
This commit is contained in:
parent
e5051898b2
commit
bb915b4e59
6 changed files with 16 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
set -gx LANG "en_US.UTF-8"
|
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 TERMINAL "alacritty"
|
||||||
set -gx GIT_PAGER "delta"
|
set -gx GIT_PAGER "delta"
|
||||||
set -gx DOOMPAGER "delta"
|
set -gx DOOMPAGER "delta"
|
||||||
|
|
3
.config/fish/functions/em.fish
Normal file
3
.config/fish/functions/em.fish
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
function em --wraps='emacsclient -a "" -nc' --description 'Start emacsclient (+daemon if neccessary)'
|
||||||
|
emacsclient -a "" -nc $argv;
|
||||||
|
end
|
3
.config/fish/functions/ems.fish
Normal file
3
.config/fish/functions/ems.fish
Normal 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
|
3
.config/fish/functions/et.fish
Normal file
3
.config/fish/functions/et.fish
Normal 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
|
3
.config/fish/functions/ets.fish
Normal file
3
.config/fish/functions/ets.fish
Normal 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
|
|
@ -4,7 +4,7 @@
|
||||||
signingkey = 7A9CA430D426100E
|
signingkey = 7A9CA430D426100E
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
editor = nvim
|
editor = emacsclient -a "" -ut
|
||||||
pager = delta
|
pager = delta
|
||||||
|
|
||||||
[interactive]
|
[interactive]
|
||||||
|
|
Loading…
Reference in a new issue