1.1 KiB
1.1 KiB
Dired
dired is a built-in package in Emacs that allows for basic file navigation. While it serves its purpose, vanilla dired is far from a good file navigator. With some basic customization however, this can be changed.
(use-package dired
:ensure nil
:commands (dired dired-jump)
:bind (("C-x C-j" . dired-jump))
:custom ((dired-listing-switches "-ahgo"))
:config
(evil-collection-define-key 'normal 'dired-mode-map
"h" 'dired-up-directory
"l" 'dired-find-file
"T" 'dired-create-empty-file))
All the Icons Dired
all-the-icons-dired is a dired plugin that adds icons to each of the files.
(use-package all-the-icons-dired
:after dired
:hook (dired-mode . all-the-icons-dired-mode))
Hide Dotfiles
This hides all dotfiles in dired with the keybinding H.
(use-package dired-hide-dotfiles
:hook (dired-mode . dired-hide-dotfiles-mode)
:config
(evil-collection-define-key 'normal 'dired-mode-map
"H" 'dired-hide-dotfiles-mode))