diff options
author | Case Duckworth | 2021-03-11 12:15:33 -0600 |
---|---|---|
committer | Case Duckworth | 2021-03-11 12:15:33 -0600 |
commit | 3a23393346d0b27548294031b19148857794e4e2 (patch) | |
tree | 170095a5b8cb25d47c76cf4b753bd74b25f55b7c | |
parent | Configure web browsing (diff) | |
download | emacs-3a23393346d0b27548294031b19148857794e4e2.tar.gz emacs-3a23393346d0b27548294031b19148857794e4e2.zip |
Configure `dired' and add packages
-rw-r--r-- | init.el | 25 |
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) |