From 47fac1cc9670e13f18fab2677adcc097633ffdce Mon Sep 17 00:00:00 2001 From: fpi Date: Thu, 21 Jan 2021 15:52:33 +0100 Subject: Enable exwm if $DESKTOP_SESSION is exwm ... and not a TUI --- emacs-init.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs-init.org b/emacs-init.org index 568e2bb..d4b3d02 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -403,7 +403,8 @@ Now we can easily extract info on the current device. The previous sections cover all basic settings which may be useful when loading =exwm=. My =exwm= configurations are in [[file:init-exwm.org][init-exwm.org]] and we can load the tangled version here. In the future I may convert it into a standalone package. #+begin_src emacs-lisp -(when (eq (fpi/current-device-info :wm) 'exwm) +(when (and (equal (getenv "DESKTOP_SESSION") "exwm") + (eq window-system 'x)) (load (concat user-emacs-directory "init-exwm.el")) #+end_src Also enable =exwm=. This does nothing if =emacs= is not started as window manager. -- cgit v1.2.3