Don't enable exwm when I don't ask for it

This commit is contained in:
Benson Chu 2025-03-22 22:57:48 +00:00
parent 7ae61d6389
commit a9c88a72c0
2 changed files with 5 additions and 3 deletions

View file

@ -485,7 +485,8 @@
(add-hook 'prog-mode-hook (add-hook 'prog-mode-hook
'corfu-mode) 'corfu-mode)
:config :config
(require 'corfu-hack)) (when my-ec/enable-exwm
(require 'corfu-hack)))
;; Magit ;; Magit
(use-package magit) (use-package magit)

View file

@ -29,11 +29,12 @@
;;; Code: ;;; Code:
(defmacro use-exwm (&rest body) (defmacro use-exwm (&rest body)
`(use-package exwm `(when my-ec/enable-exwm
(use-package exwm
:ensure nil :ensure nil
:defer t :defer t
:quelpa (exwm :fetcher ,(if (or noninteractive my-ec/at-ti) "github" "github-ssh") :repo "pestctrl/exwm") :quelpa (exwm :fetcher ,(if (or noninteractive my-ec/at-ti) "github" "github-ssh") :repo "pestctrl/exwm")
,@body)) ,@body)))
(provide 'use-exwm) (provide 'use-exwm)
;;; use-exwm.el ends here ;;; use-exwm.el ends here