minor conveniences

This commit is contained in:
Abraham Raji 2020-01-13 23:49:39 +05:30
parent 8574062c0d
commit 0424e62dd6

View file

@ -18,3 +18,27 @@ Open media with the appropriate programs.
("webm" . "mpv")
("avi" . "mpv"))))
#+END_SRC
These are the switches that get passed to ls when dired gets a list of files. Were using:
l: Use the long listing format.
h: Use human-readable sizes.
v: Sort numbers naturally.
A: Almost all. Doesnt include ”.” or ”..”.
#+BEGIN_SRC emacs-lisp
(setq-default dired-listing-switches "-lhvA")
#+END_SRC
Kill buffers of files/directories that are deleted in dired.
#+BEGIN_SRC emacs-lisp
(setq dired-clean-up-buffers-too t)
#+END_SRC
Always copy directories recursively instead of asking every time.
#+BEGIN_SRC emacs-lisp
(setq dired-recursive-copies 'always)
#+END_SRC
Ask before recursively deleting a directory, though.
#+BEGIN_SRC emacs-lisp
(setq dired-recursive-deletes 'top)
#+END_SRC