dotfiles/emacs-lisp/dired.org
main dc4f6833d5
Emacs stuff
Signed-off-by: main <magic_rb@redalder.org>
2022-03-12 23:06:42 +01:00

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)