EXWM: Set up as default WM

master
Pierre Neidhardt 2017-07-27 13:45:30 +01:00
parent 8e2afef213
commit 9e37b7fb26
3 changed files with 4 additions and 4 deletions

View File

@ -137,6 +137,4 @@
(exwm-input-set-key (kbd "s-&") #'exwm-start)
(exwm-input-set-key (kbd "s-r") #'exwm-start)
(exwm-enable) ; TODO: This should be left to Emacs' commandline arguments.
(provide 'init-exwm)

View File

@ -182,7 +182,7 @@ fi
## 'em' is a custom wrapper for emacsclient. See '.bin/em'.
## VISUAL is given priority by some programs like Mutt. This way we can separate
## editors that wait from those that don't.
for i in em emacs vim vi nano; do
for i in emacsclient em emacs vim vi nano; do
command -v $i >/dev/null 2>&1 && export EDITOR=$i && break
done
GIT_EDITOR="$EDITOR"

View File

@ -18,7 +18,9 @@ fi
if [ $# -eq 1 ] && command -v $1 >/dev/null 2>&1; then
exec $1
else
exec awesome
## `exwm-enable' has to be called before the frame is spawned.
emacs --daemon -f exwm-enable
exec emacsclient -c
fi
## TODO: When the session is terminated, some forked processes must be closed