[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

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. The complete configuration for the ~exwm~ package can be found below.
#+begin_src emacs-lisp :noweb yes #+begin_src emacs-lisp :noweb yes
(use-package exwm (use-package exwm
:if (seq-contains-p command-line-args "--use-exwm")
:straight (exwm :build t :straight (exwm :build t
:type git :type git
:host github :host github
@ -3696,6 +3697,7 @@ The complete configuration for the ~exwm~ package can be found below.
:END: :END:
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package evil-exwm-state (use-package evil-exwm-state
:if (seq-contains-p command-line-args "--use-exwm")
:defer t :defer t
:after exwm :after exwm
:straight (evil-exwm-state :build t :straight (evil-exwm-state :build t