Better keybindings of Neotree

This commit is contained in:
Howard Abrams 2022-02-25 17:14:50 -08:00
parent 4c62a1a6bf
commit bebc16c29b

View file

@ -1300,11 +1300,13 @@ Use these special keywords when searching:
I primarily use [[https://github.com/jaypei/emacs-neotree][Neotree]] when I am screen-sharing my Emacs session with collegues as it shows a /project/ like an IDE.
#+BEGIN_SRC emacs-lisp
(use-package neotree
:config
:bind (:neotree-mode-map ; Let evil-collection do its thing
("j" . 'neotree-next-line)
("k" . 'neotree-previous-line))
:config ; evil-collection forget a couple:
(evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter)
(evil-define-key 'normal neotree-mode-map (kbd "SPC") 'neotree-quick-look)
(evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter)
(evil-define-key 'normal neotree-mode-map (kbd "g") 'neotree-refresh)
(evil-define-key 'normal neotree-mode-map (kbd "H") 'neotree-hidden-file-toggle))
#+END_SRC
** Annotations