[Emacs] Do not run any EXWM code if it is not used

Only run the configuration code for EXWM if the argument `--with-exwm'
is passed to Emacs, otherwise don’t
This commit is contained in:
Lucien Cartier-Tilet 2022-03-04 15:09:51 +01:00
parent 30086fa7ce
commit 61c123799b
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 2 additions and 0 deletions

View File

@ -3662,6 +3662,7 @@ exwm-randr ran, because otherwise having multiple monitors dont 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