about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el25
1 files changed, 25 insertions, 0 deletions
diff --git a/init.el b/init.el index 1508a8d..23628d7 100644 --- a/init.el +++ b/init.el
@@ -320,6 +320,31 @@
320(acdw/hooks text-mode-hook goto-address-mode) 320(acdw/hooks text-mode-hook goto-address-mode)
321(acdw/hooks prog-mode-hook goto-address-prog-mode) 321(acdw/hooks prog-mode-hook goto-address-prog-mode)
322 322
323;;; Dired
324
325(acdw/set `((dired-recursive-copies always)
326 (dired-recursive-deletes always)
327 (delete-by-moving-to-trash t)
328 (dired-listing-switches "-Al")
329 (ls-lisp-dirs-first t)
330 (dired-dwim-target t)))
331
332(defun hook--dired-mode ()
333 (hl-line-mode +1)
334 (dired-hide-details-mode +1))
335(add-hook 'dired-mode-hook #'hook--dired-mode)
336
337(acdw/bind "C-x C-j" dired-jump :after "dired-x")
338
339(with-eval-after-load 'dired
340 ;; I tried `autoload'ing the keymap, and it just wouldn't work. I have no
341 ;; idea what the issue was.
342 (acdw/pkg dired-subtree
343 :binds (("i" dired-subtree-toggle :map dired-mode-map))))
344
345(acdw/pkg dired-collapse
346 :hooks (dired-mode-hook dired-collapse-mode))
347
323;;; Miscellaneous 348;;; Miscellaneous
324 349
325(acdw/set '((disabled-command-function nil) 350(acdw/set '((disabled-command-function nil)