Added emacs config
This commit is contained in:
38
.emacs.d/dired.org
Normal file
38
.emacs.d/dired.org
Normal file
@@ -0,0 +1,38 @@
|
||||
* 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.
|
||||
|
||||
#+begin_src elisp
|
||||
(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))
|
||||
#+end_src
|
||||
|
||||
* All the Icons Dired
|
||||
|
||||
~all-the-icons-dired~ is a dired plugin that adds icons to each of the files.
|
||||
|
||||
#+begin_src elisp
|
||||
(use-package all-the-icons-dired
|
||||
:after dired
|
||||
:hook (dired-mode . all-the-icons-dired-mode))
|
||||
#+end_src
|
||||
|
||||
* Hide Dotfiles
|
||||
|
||||
This hides all dotfiles in dired with the keybinding ~H~.
|
||||
|
||||
#+begin_src elisp
|
||||
(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))
|
||||
#+end_src
|
||||
Reference in New Issue
Block a user