diff options
-rw-r--r-- | emacs.d/init.el | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el index 3b1be0c..35f2cda 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -44,7 +44,18 @@ (use-package dired :bind ("C-x C-d" . dired) :config - (setq dired-listing-switches "-laGhv")) + (let ((gls "/usr/local/bin/gls")) + (if (file-exists-p gls) + (setq insert-directory-program gls + dired-listing-switches "-aBhl --group-directories-first"))) + (use-package dired-x + :init + (add-hook 'dired-load-hook (lambda () (load "dired-x"))) + :config + (add-hook 'dired-mode-hook #'dired-omit-mode) + (setq dired-omit-verbose nil) + (setq dired-omit-files + (concat dired-omit-files "\\|^.DS_Store$\\|^.projectile$\\|^.git$")))) (use-package lisp-mode :config |