Commit 81ec9669 authored by Victor A. Stoichiţă's avatar Victor A. Stoichiţă
Browse files

rephrase dired hooks: proper distinction between load and mode

parent 10fbdb24
......@@ -306,15 +306,18 @@ deleted or iconified, according to option `frame-auto-hide-function'."
(dired-async-mode 1)
(define-key dired-mode-map "\C-cn" 'dired-narrow)
(setq dired-load-hook nil)
(add-hook 'dired-load-hook
(lambda ()
(load "dired-x")
(dired-hide-details-mode 1) ;; Hide details by default. Unhide with "("
(setq dired-x-hands-off-my-keys nil)
;; hide dotfiles
(load "dired-x") ;
(define-key dired-mode-map "." #'dired-hide-dotfiles-mode)
(setq dired-x-hands-off-my-keys nil)))
(add-hook 'dired-mode-hook
(lambda ()
(dired-hide-details-mode 1) ;; Hide details by default. Unhide with "("
(dired-hide-dotfiles-mode) ;; hide dotfiles
(toggle-truncate-lines t)))
;;;; Dired-jump
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment