From ccf511ce0ce42987a2e5cfdc681147b66476eb56 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 11 Nov 2023 09:23:45 +0000 Subject: [PATCH] Check for kbd-mode before installing --- home/emacs/init.el | 5 +++-- home/emacs/init.org | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/home/emacs/init.el b/home/emacs/init.el index 5f28af60..587a2d1f 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -522,8 +522,9 @@ manually with something like this: :after (embark consult) :hook (embark-collect-mode . consult-preview-at-point-mode)) -(package-vc-install - '(kbd-mode . (:url "https://github.com/kmonad/kbd-mode"))) +(unless (package-installed-p 'kbd-mode) + (package-vc-install + '(kbd-mode . (:url "https://github.com/kmonad/kbd-mode")))) (use-package kbd-mode) (setq sendmail-program (executable-find "msmtp") diff --git a/home/emacs/init.org b/home/emacs/init.org index c1f62eaf..71b06a99 100644 --- a/home/emacs/init.org +++ b/home/emacs/init.org @@ -611,8 +611,9 @@ For reference information, see [[https://orgmode.com][Org-mode website]] ** Language-specific settings *** kmonad #+begin_src emacs-lisp - (package-vc-install - '(kbd-mode . (:url "https://github.com/kmonad/kbd-mode"))) + (unless (package-installed-p 'kbd-mode) + (package-vc-install + '(kbd-mode . (:url "https://github.com/kmonad/kbd-mode")))) (use-package kbd-mode) #+end_src * Internet