Check for kbd-mode before installing

This commit is contained in:
Evie Litherland-Smith 2023-11-11 09:23:45 +00:00
parent 135c87d5a5
commit ccf511ce0c
2 changed files with 6 additions and 4 deletions

View file

@ -522,8 +522,9 @@ manually with something like this:
:after (embark consult) :after (embark consult)
:hook (embark-collect-mode . consult-preview-at-point-mode)) :hook (embark-collect-mode . consult-preview-at-point-mode))
(package-vc-install (unless (package-installed-p 'kbd-mode)
'(kbd-mode . (:url "https://github.com/kmonad/kbd-mode"))) (package-vc-install
'(kbd-mode . (:url "https://github.com/kmonad/kbd-mode"))))
(use-package kbd-mode) (use-package kbd-mode)
(setq sendmail-program (executable-find "msmtp") (setq sendmail-program (executable-find "msmtp")

View file

@ -611,8 +611,9 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
** Language-specific settings ** Language-specific settings
*** kmonad *** kmonad
#+begin_src emacs-lisp #+begin_src emacs-lisp
(unless (package-installed-p 'kbd-mode)
(package-vc-install (package-vc-install
'(kbd-mode . (:url "https://github.com/kmonad/kbd-mode"))) '(kbd-mode . (:url "https://github.com/kmonad/kbd-mode"))))
(use-package kbd-mode) (use-package kbd-mode)
#+end_src #+end_src
* Internet * Internet