summaryrefslogtreecommitdiff
path: root/emacs-init.org
diff options
context:
space:
mode:
authorfpi2021-01-21 15:52:33 +0100
committerfpi2022-03-17 14:37:56 +0100
commit47fac1cc9670e13f18fab2677adcc097633ffdce (patch)
tree9da066cbe8e077698155ef7c674559bcf5b93d46 /emacs-init.org
parent[WIP] Add local maildir (diff)
Enable exwm if $DESKTOP_SESSION is exwm
... and not a TUI
Diffstat (limited to 'emacs-init.org')
-rw-r--r--emacs-init.org3
1 files changed, 2 insertions, 1 deletions
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.