mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-03 05:26:18 +01:00
dc4f6833d5
Signed-off-by: main <magic_rb@redalder.org>
29 lines
793 B
Org Mode
29 lines
793 B
Org Mode
:PROPERTIES:
|
|
:ID: 484fd154-6f7c-4313-8f79-7b502b7a1c56
|
|
:END:
|
|
#+title: Dired
|
|
#+filetags: emacs-load
|
|
|
|
Dired is inclueded with Emacs since forever, I use a wrapper called [[id:67919dd9-2aa0-4b89-8c96-0441a54e7b03][dirvish]].
|
|
|
|
#+begin_src emacs-lisp
|
|
(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)
|
|
#+end_src
|
|
|
|
#+begin_src emacs-lisp
|
|
(defun magic_rb-dired-setup ()
|
|
"Setup dired"
|
|
(toggle-truncate-lines))
|
|
(add-hook 'dired-mode-hook 'magic_rb-dired-setup)
|
|
#+end_src
|