From ba63aaaeafa14057736efeb5e78d8f69e9026cc5 Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Mon, 26 May 2025 09:35:48 +0200 Subject: Prevent Ensuring Dev Packages Instead of using `:if`, wrap the `use-package` declarations in `when` so that the package isn't downloaded when in non-dev mode. --- config/emacs/init.el | 112 +++++++++++++++++++++++++-------------------------- 1 file changed, 55 insertions(+), 57 deletions(-) diff --git a/config/emacs/init.el b/config/emacs/init.el index 595fec5..721f9f4 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -176,78 +176,76 @@ ;;; -- LLM -- -(use-package copilot - :if (init/dev) - :ensure t - :bind (("C-" . copilot-accept-completion) - ("C-M-" . copilot-accept-completion-by-word) - ("C-c a a" . copilot-mode) - ("C-c a n" . copilot-next-completion) - ("C-c a p" . copilot-previous-completion))) +(when (init/dev) + (use-package copilot + :ensure t + :bind (("C-" . copilot-accept-completion) + ("C-M-" . copilot-accept-completion-by-word) + ("C-c a a" . copilot-mode) + ("C-c a n" . copilot-next-completion) + ("C-c a p" . copilot-previous-completion)))) ;;; -- General Development -- -(use-package ligature - :if (init/dev) - :ensure t - :hook - (prog-mode . ligature-mode) - :config - (ligature-set-ligatures - 'prog-mode - '(".." "..." "::" ":=" ";;" ";;;" "??" "**" "/*" "*/" "/**" "<-" - "->" "-->" "" "