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
'corfu-mode)
:config
(require 'corfu-hack))
(when my-ec/enable-exwm
(require 'corfu-hack)))
;; Magit
(use-package magit)

View file

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