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

@ -1299,13 +1299,15 @@ Use these special keywords when searching:
** Neotree ** Neotree
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. 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 #+BEGIN_SRC emacs-lisp
(use-package neotree (use-package neotree
:config :bind (:neotree-mode-map ; Let evil-collection do its thing
(evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter) ("j" . 'neotree-next-line)
(evil-define-key 'normal neotree-mode-map (kbd "SPC") 'neotree-quick-look) ("k" . 'neotree-previous-line))
(evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter) :config ; evil-collection forget a couple:
(evil-define-key 'normal neotree-mode-map (kbd "g") 'neotree-refresh) (evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter)
(evil-define-key 'normal neotree-mode-map (kbd "H") 'neotree-hidden-file-toggle)) (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 "H") 'neotree-hidden-file-toggle))
#+END_SRC #+END_SRC
** Annotations ** Annotations
Let's try [[https://github.com/bastibe/annotate.el][annotate-mode]], which allows you to drop "notes" and then move to them (yes, serious overlap with bookmarks, which we will return to). Let's try [[https://github.com/bastibe/annotate.el][annotate-mode]], which allows you to drop "notes" and then move to them (yes, serious overlap with bookmarks, which we will return to).