From d2052ff753ea53715fe29d11722f00e521521d77 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 28 Jan 2022 11:11:35 -0800 Subject: 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 Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/emacs/.emacs.d/wpc/bookmark.el | 8 -------- 1 file changed, 8 deletions(-) diff --git a/users/wpcarro/emacs/.emacs.d/wpc/bookmark.el b/users/wpcarro/emacs/.emacs.d/wpc/bookmark.el index 04efc7c2e5..c5e3bf3ac9 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/bookmark.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/bookmark.el @@ -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 "" - :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 -- cgit 1.4.1