From ab2794dd6700c2ef544d9fc2d201f3969b59e803 Mon Sep 17 00:00:00 2001 From: Random936 Date: Sun, 17 Sep 2023 20:53:51 -0700 Subject: [PATCH] Updated EXWM to be run based on environment variables --- .emacs.d/config.org | 8 ++++---- .emacs.d/start-exwm.sh | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index dea155f..c7f884d 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -940,10 +940,10 @@ When using zsh with powerlevel10k, the ~MesloLGS NF~ font is required to make th This is the section to include imports from other files. #+begin_src emacs-lisp -;; Uncomment this to use EXWM. I currently don't use this. -;(let ((exwm-org-file "~/.emacs.d/exwm.org")) -;(when (file-exists-p exwm-org-file) -; (org-babel-load-file exwm-org-file))) +;; Load org file contianing EXWM config. +(let ((exwm-org-file "~/.emacs.d/exwm.org")) +(when (and (file-exists-p exwm-org-file) (getenv "USING_EXWM")) + (org-babel-load-file exwm-org-file))) ;; Load org file containing custom Elisp functions. (let ((functions-file "~/.emacs.d/functions.org")) diff --git a/.emacs.d/start-exwm.sh b/.emacs.d/start-exwm.sh index 7fb3e0c..5b27fc8 100755 --- a/.emacs.d/start-exwm.sh +++ b/.emacs.d/start-exwm.sh @@ -1,3 +1,4 @@ #!/bin/bash +export USING_EXWM=t exec dbus-launch --exit-with-session emacs -mm --debug-init