From 61c123799b19159d6398c8d79285bce9296fcc78 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Fri, 4 Mar 2022 15:09:51 +0100 Subject: [PATCH] [Emacs] Do not run any EXWM code if it is not used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only run the configuration code for EXWM if the argument `--with-exwm' is passed to Emacs, otherwise don’t --- org/config/emacs.org | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org/config/emacs.org b/org/config/emacs.org index c3b209b..8d871d0 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -3662,6 +3662,7 @@ exwm-randr ran, because otherwise having multiple monitors don’t work. The complete configuration for the ~exwm~ package can be found below. #+begin_src emacs-lisp :noweb yes (use-package exwm + :if (seq-contains-p command-line-args "--use-exwm") :straight (exwm :build t :type git :host github @@ -3696,6 +3697,7 @@ The complete configuration for the ~exwm~ package can be found below. :END: #+begin_src emacs-lisp (use-package evil-exwm-state + :if (seq-contains-p command-line-args "--use-exwm") :defer t :after exwm :straight (evil-exwm-state :build t