feat: Add initial dired config
Single buffer + hiding dotfiles
This commit is contained in:
parent
ff49b4958c
commit
c47edf6f18
1 changed files with 42 additions and 0 deletions
42
config.org
42
config.org
|
|
@ -23,6 +23,10 @@
|
||||||
- [[#toggle-between-char--and-line-mode][Toggle between char- and line-mode]]
|
- [[#toggle-between-char--and-line-mode][Toggle between char- and line-mode]]
|
||||||
- [[#with-editor][With editor]]
|
- [[#with-editor][With editor]]
|
||||||
- [[#eshell][Eshell]]
|
- [[#eshell][Eshell]]
|
||||||
|
- [[#dired][Dired]]
|
||||||
|
- [[#general-config][General config]]
|
||||||
|
- [[#single-buffer][Single-buffer]]
|
||||||
|
- [[#hideshow-dot-files][Hide/show dot-files]]
|
||||||
- [[#resize-frame][Resize frame]]
|
- [[#resize-frame][Resize frame]]
|
||||||
- [[#general-stuff][General stuff]]
|
- [[#general-stuff][General stuff]]
|
||||||
- [[#unsorted][Unsorted]]
|
- [[#unsorted][Unsorted]]
|
||||||
|
|
@ -445,6 +449,44 @@ We could use an alias (alias sudo eshell/sudo $*), but to keep things inside thi
|
||||||
(setq password-cache-expiry 3600) ; for one hour (time in secs)
|
(setq password-cache-expiry 3600) ; for one hour (time in secs)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
* Dired
|
||||||
|
|
||||||
|
** General config
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package dired
|
||||||
|
:ensure nil
|
||||||
|
:commands (dired dired-jump)
|
||||||
|
:custom ((dired-listing-switches "-agho --group-directories-first"))
|
||||||
|
)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Single-buffer
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package dired-single
|
||||||
|
:bind (
|
||||||
|
:map dired-mode-map
|
||||||
|
([remap dired-find-file] . dired-single-buffer)
|
||||||
|
([remap dired-mouse-find-file-other-window] . dired-single-buffer-mouse)
|
||||||
|
([remap dired-up-directory] . dired-single-up-directory)
|
||||||
|
("<up>" . dired-single-up-directory)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Hide/show dot-files
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package dired-hide-dotfiles
|
||||||
|
:hook (dired-mode . dired-hide-dotfiles-mode)
|
||||||
|
:bind (
|
||||||
|
:map dired-mode-map
|
||||||
|
("H" . dired-hide-dotfiles-mode)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Resize frame
|
* Resize frame
|
||||||
|
|
||||||
Minor-mode to easily resize frames (works with EXWM (firefox, ...)).
|
Minor-mode to easily resize frames (works with EXWM (firefox, ...)).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue