remap dired nav

This commit is contained in:
petrucci4prez 2018-07-20 00:33:40 -04:00
parent 10223ffa8c
commit 509697db2e
1 changed files with 8 additions and 0 deletions

View File

@ -1672,6 +1672,14 @@ I like being evil. All package and custom bindings go here.
:config :config
(evil-collection-init)) (evil-collection-init))
#+END_SRC #+END_SRC
**** dired
Dired makes new buffers by default. Use =find-alternate-file= to avoid this
#+BEGIN_SRC emacs-lisp
(evil-define-key 'normal dired-mode-map
"a" 'dired-find-file
(kbd "<return>") 'dired-find-alternate-file
"^" (lambda () (interactive) (find-alternate-file "..")))
#+END_SRC
** local ** local
*** org-mode *** org-mode
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp