emacs server

This commit is contained in:
Philipp Hochkamp 2022-09-05 21:30:29 +02:00
parent 8af7ea5958
commit 0378909589
4 changed files with 112 additions and 84 deletions

View file

@ -47,3 +47,9 @@ n ()
rm -f "$NNN_TMPFILE" > /dev/null
fi
}
ORIGTMPDIR=$TMPDIR # nix-shell overrides tmpdir, but we want to save it
emacsclient ()
{
command emacsclient -s $ORIGTMPDIR/emacs$(id -u)/server "$@"
}