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

change load hooks for dired

parent c0458910
......@@ -306,27 +306,15 @@ deleted or iconified, according to option `frame-auto-hide-function'."
(define-key dired-mode-map "\C-cn" 'dired-narrow)
;;;; Load hook tweaks
;; Hide dotfiles by default and toggle with "."
(defun vic-dired-hide-dotfiles-hook ()
(define-key dired-mode-map "." #'dired-hide-dotfiles-mode))
;; Hide details by default
(defun vic-dired-mode-setup ()
"to be run as hook for `dired-mode'."
;; normally bound to (
(dired-hide-details-mode 1))
(add-hook 'dired-load-hook
(lambda ()
;; Set dired-x global variables here. For example:
;; (setq dired-guess-shell-gnutar "gtar")
(setq dired-x-hands-off-my-keys nil)
(load "dired-x")
(dired-hide-details-mode 1) ;; Hide details by default. Unhide with "("
(setq dired-x-hands-off-my-keys nil)
;; hide dotfiles
(define-key dired-mode-map "." #'dired-hide-dotfiles-mode)
(toggle-truncate-lines t)))
;;;; Dired-jump
;; autoload dired-jump to work before a dired buffer is opened
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