about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el35
1 files changed, 16 insertions, 19 deletions
diff --git a/init.el b/init.el index aa2039e..d0b6f6a 100644 --- a/init.el +++ b/init.el
@@ -341,29 +341,26 @@
341 (prog-mode-hook goto-address-prog-mode))) 341 (prog-mode-hook goto-address-prog-mode)))
342 342
343;;; Dired 343;;; Dired
344 344(acdw/pkg dired
345(acdw/set `((dired-recursive-copies always) 345 :local t
346 :set `((dired-recursive-copies always)
346 (dired-recursive-deletes always) 347 (dired-recursive-deletes always)
347 (delete-by-moving-to-trash t) 348 (delete-by-moving-to-trash t)
348 (dired-listing-switches "-Al") 349 (dired-listing-switches "-Al")
349 (ls-lisp-dirs-first t) 350 (ls-lisp-dirs-first t)
350 (dired-dwim-target t))) 351 (dired-dwim-target t))
351 352 :now ((autoload 'dired-mode-map "dired" nil nil 'keymap)
352(defun hook--dired-mode () 353 (acdw/pkg dired-subtree)
353 (hl-line-mode +1) 354 (acdw/pkg dired-x
354 (dired-hide-details-mode +1)) 355 :local t
355(add-hook 'dired-mode-hook #'hook--dired-mode) 356 :binds (("C-x C-j" dired-jump)))
356 357 (acdw/pkg dired-collapse
357(acdw/bind "C-x C-j" dired-jump :after "dired-x") 358 :hooks ((dired-mode-hook dired-collapse-mode)))
358 359 (defun hook--dired-mode ()
359(with-eval-after-load 'dired 360 (hl-line-mode +1)
360 ;; I tried `autoload'ing the keymap, and it just wouldn't work. I have no 361 (dired-hide-details-mode +1)))
361 ;; idea what the issue was. 362 :hooks ((dired-mode-hook hook--dired-mode))
362 (acdw/pkg dired-subtree 363 :binds (("i" dired-subtree-toggle :map dired-mode-map)))
363 :binds (("i" dired-subtree-toggle :map dired-mode-map))))
364
365(acdw/pkg dired-collapse
366 :hooks ((dired-mode-hook dired-collapse-mode)))
367 364
368;;; Eshell 365;;; Eshell
369 366