branch: elpa/javelin
commit 064e535439337eead322cbae6e05ac9a7f456fa7
Author: Otávio Schwanck dos Santos <[email protected]>
Commit: Otávio Schwanck dos Santos <[email protected]>

    fix map key
---
 harpoon.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/harpoon.el b/harpoon.el
index e4a38a457b7..7aa70938fae 100644
--- a/harpoon.el
+++ b/harpoon.el
@@ -31,6 +31,10 @@
 (require 'magit)
 (require 'f)
 
+(defvar harpoon-mode-map
+  (let ((map (make-sparse-keymap)))
+    (define-key map (kbd "<return>") #'harpoon-find-file) map))
+
 (defgroup harpoon nil
   "Harpoon for emacs."
   :group 'tools)
@@ -196,7 +200,5 @@
       (find-file path))
       (message "File not found."))))
 
-(define-key harpoon-mode-map (kbd "<return>") #'harpoon-find-file)
-
 (provide 'harpoon)
 ;;; harpoon.el ends here

Reply via email to