fix leader prefix keymaps
This functionality was broken after removing general.
This commit is contained in:
parent
64b698633c
commit
af50a623e8
1 changed files with 15 additions and 9 deletions
24
init.org
24
init.org
|
@ -290,15 +290,19 @@ muscle memory.
|
|||
#+BEGIN_SRC emacs-lisp
|
||||
;; make vc commands available via leader key
|
||||
(evil-define-key 'normal 'global
|
||||
(kbd "<leader>v") 'vc-prefix-map)
|
||||
(kbd "<leader>v") vc-prefix-map)
|
||||
#+END_SRC
|
||||
|
||||
#+RESULTS:
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;; make project commands available via leader key
|
||||
(evil-define-key 'normal 'global
|
||||
(kbd "<leader>p") 'project-prefix-map)
|
||||
(kbd "<leader>p") project-prefix-map)
|
||||
#+END_SRC
|
||||
|
||||
#+RESULTS:
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(evil-define-key 'normal 'global
|
||||
(kbd "<leader>ff") #'find-file
|
||||
|
@ -313,11 +317,10 @@ muscle memory.
|
|||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package harpoon
|
||||
:ensure t
|
||||
:commands (harpoon-add-file harpoon-go-to-1 harpoon-go-to-2 harpoon-toggle-quick-menu)
|
||||
:config
|
||||
(let ((pti-harpoon-map (make-sparse-keymap)))
|
||||
(use-package harpoon
|
||||
:ensure t
|
||||
:init
|
||||
(setq pti-harpoon-map (make-sparse-keymap))
|
||||
(keymap-set pti-harpoon-map (kbd "h") 'harpoon-toggle-quick-menu)
|
||||
(keymap-set pti-harpoon-map (kbd "a") 'harpoon-add-file)
|
||||
(keymap-set pti-harpoon-map (kbd "f") 'harpoon-toggle-file)
|
||||
|
@ -326,9 +329,12 @@ muscle memory.
|
|||
(keymap-set pti-harpoon-map (kbd "l") 'harpoon-go-to-3)
|
||||
(keymap-set pti-harpoon-map (kbd ";") 'harpoon-go-to-4)
|
||||
(keymap-set pti-harpoon-map (kbd "h") 'harpoon-toggle-quick-menu)
|
||||
(evil-define-key 'normal 'global
|
||||
(kbd "<leader>h") (pti-harpoon-map))))
|
||||
:bind
|
||||
(("<leader>h" . ' 'pti-harpoon-map)))
|
||||
#+END_SRC
|
||||
|
||||
#+RESULTS:
|
||||
|
||||
** User Interface
|
||||
*** Do not show default splash screen
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
|
Loading…
Reference in a new issue