summary refs log tree commit diff
path: root/emacs.d/modules/module-dired.el
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-04-08 16:13:12 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-04-08 16:13:12 -0700
commit4007ca81e0105119c8ed754e654a731934f5154c (patch)
tree41ba9d60f64866c8a098e631e8e32bf4249931fa /emacs.d/modules/module-dired.el
parent[emacs] fix some path after directories reorg (diff)
downloademacs.d-4007ca81e0105119c8ed754e654a731934f5154c.tar.gz
[emacs] Large refactoring.
At first I wanted to add support for java, and then I realized that
maintaining a giant file with all the packages was not working as I
was expected.

The configuration is broken down to multiple files now, with each
major mode in a separate file, and the main modules in their own too.

This should make it easier to maintain and organize.
Diffstat (limited to 'emacs.d/modules/module-dired.el')
-rw-r--r--emacs.d/modules/module-dired.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/emacs.d/modules/module-dired.el b/emacs.d/modules/module-dired.el
new file mode 100644
index 0000000..6879da9
--- /dev/null
+++ b/emacs.d/modules/module-dired.el
@@ -0,0 +1,17 @@
+(require 'config-package)
+
+;; Keep dired buffers updated when the file system changes.
+(setq global-auto-revert-non-file-buffers t)
+(setq auto-revert-verbose nil)
+
+;; (setq dired-omit-files
+;;       (concat dired-omit-files "\\|^.DS_Store$\\|^.projectile$\\|^.git$\\|^.svn")))
+
+(let ((gls "/opt/twitter/bin/gls"))
+  (if (file-exists-p gls)
+      (setq insert-directory-program gls
+	    dired-listing-switches "-aBhl --group-directories-first")))
+
+(global-set-key (kbd "C-x C-d") 'dired)
+
+(provide 'module-dired)