fix(wpcarro/emacs): Remove duplicate fn defn

Prefer the version of `bookmark-install-kbds` that defines named functions,
which are useful for the `which-key` integration.

Change-Id: I2ba8d457f04cba72da24244db8cd333f44e9a606
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5102
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
This commit is contained in:
William Carroll 2022-01-28 11:11:35 -08:00 committed by clbot
parent d549432b42
commit d2052ff753

View file

@ -80,14 +80,6 @@
(format "J%s" (bookmark-kbd b)) `,(intern (format "bookmark-visit-%s" (bookmark-label b)))
(format "j%s" (bookmark-kbd b)) `,(intern (format "bookmark-browse-%s" (bookmark-label b)))))
(defun bookmark-install-kbd (x)
"Install the keybindings for a bookmark, X."
(general-define-key
:prefix "<SPC>"
:states '(normal)
(format "J%s" (bookmark-kbd x)) (lambda () (interactive) (find-file (bookmark-path x)))
(format "j%s" (bookmark-kbd x)) (lambda () (interactive) (bookmark-open (bookmark-path x)))))
(defun bookmark-install-kbds ()
"Install the keybindings defined herein."
(->> bookmark-whitelist