Skip to content

Instantly share code, notes, and snippets.

@ctanis
ctanis / gist:1432200
Created December 5, 2011 03:40
something to cleanup dired mode (especially in the root of a home dir)
(defun dired-hide-dotfiles()
"reload current dired buffer, hiding dotfiles"
(interactive)
(dired-unmark-all-marks)
(dired-mark-files-regexp "^\\.")
(dired-do-kill-lines))
(add-hook 'dired-mode-hook
'(lambda ()
(local-set-key "h" 'dired-hide-dotfiles)))