mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-01 20:46:12 +01:00
dc4f6833d5
Signed-off-by: main <magic_rb@redalder.org>
793 B
793 B
Dired
Dired is inclueded with Emacs since forever, I use a wrapper called dirvish.
(define-minor-mode magic_rb-koy-dired-mode
"Enable koy compatibility for Evil."
:lighter " koy"
:keymap (make-sparse-keymap)
(evil-normalize-keymaps))
(general-def
:predicate 'magic_rb-koy-compat-p
:keymaps 'magic_rb-koy-dired-mode-map
:states 'normal
"e" 'dired-find-file)
(add-hook 'dired-mode-hook 'magic_rb-koy-dired-mode)
(defun magic_rb-dired-setup ()
"Setup dired"
(toggle-truncate-lines))
(add-hook 'dired-mode-hook 'magic_rb-dired-setup)