diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2016-10-29 14:15:06 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2016-10-29 14:15:06 -0700 |
commit | ccac1d6c334365852fe0fd6a85d4d8d55336a794 (patch) | |
tree | 1c7d5d263d2e84400c48bb56f9f6218de1f048b1 | |
parent | [emacs] Add main configuration for `ivy'. (diff) | |
download | emacs.d-ccac1d6c334365852fe0fd6a85d4d8d55336a794.tar.gz |
[emacs] More configuration for dired.
Enable the package `dired-x', and make sure we use `gls` instead of ls only if the binary is available.
-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 |