Added emacs config

This commit is contained in:
Random936
2025-08-01 21:22:01 -07:00
commit 5ec5e4613b
9 changed files with 946 additions and 0 deletions

38
.emacs.d/dired.org Normal file
View 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