EXWM: Set up as default WM
parent
8e2afef213
commit
9e37b7fb26
|
@ -137,6 +137,4 @@
|
||||||
(exwm-input-set-key (kbd "s-&") #'exwm-start)
|
(exwm-input-set-key (kbd "s-&") #'exwm-start)
|
||||||
(exwm-input-set-key (kbd "s-r") #'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)
|
(provide 'init-exwm)
|
||||||
|
|
2
.profile
2
.profile
|
@ -182,7 +182,7 @@ fi
|
||||||
## 'em' is a custom wrapper for emacsclient. See '.bin/em'.
|
## 'em' is a custom wrapper for emacsclient. See '.bin/em'.
|
||||||
## VISUAL is given priority by some programs like Mutt. This way we can separate
|
## VISUAL is given priority by some programs like Mutt. This way we can separate
|
||||||
## editors that wait from those that don't.
|
## 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
|
command -v $i >/dev/null 2>&1 && export EDITOR=$i && break
|
||||||
done
|
done
|
||||||
GIT_EDITOR="$EDITOR"
|
GIT_EDITOR="$EDITOR"
|
||||||
|
|
4
.xinitrc
4
.xinitrc
|
@ -18,7 +18,9 @@ fi
|
||||||
if [ $# -eq 1 ] && command -v $1 >/dev/null 2>&1; then
|
if [ $# -eq 1 ] && command -v $1 >/dev/null 2>&1; then
|
||||||
exec $1
|
exec $1
|
||||||
else
|
else
|
||||||
exec awesome
|
## `exwm-enable' has to be called before the frame is spawned.
|
||||||
|
emacs --daemon -f exwm-enable
|
||||||
|
exec emacsclient -c
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## TODO: When the session is terminated, some forked processes must be closed
|
## TODO: When the session is terminated, some forked processes must be closed
|
||||||
|
|
Loading…
Reference in New Issue