summaryrefslogtreecommitdiff
path: root/dired-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-12-18 01:58:57 +0800
committerJSDurand <mmemmew@gmail.com>2021-12-18 01:58:57 +0800
commit4a526ea2663b12b2b47bc3ec456faf6c74d62332 (patch)
tree4ba9af3d182ff63ba4b4e66562ec28eb0c2f4313 /dired-conf.el
parent3057cdcd5090e0ee82de5335e01d8c3620bbb7bc (diff)
add highlights for dired and change time format
* dired-conf.el (dired-listing-switches): change the time style to the long iso style. (dired-mode-hook): add hl-line-mode. * init.el ("protesilaos/lin"): activate for dired-mode-hook as well.
Diffstat (limited to 'dired-conf.el')
-rw-r--r--dired-conf.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/dired-conf.el b/dired-conf.el
index 636fcb6..e4aa4b8 100644
--- a/dired-conf.el
+++ b/dired-conf.el
@@ -4,9 +4,12 @@
(require 'dired-x)
(require 'files)
(set 'insert-directory-program "gls")
-(set 'dired-listing-switches "-alh --dired --group-directories-first")
+(set 'dired-listing-switches
+ "-alh --dired --group-directories-first --time-style=long-iso")
(setq dired-dwim-target t)
+(add-hook 'dired-mode-hook #'hl-line-mode)
+
(require 'dired-aux)
(setq dired-isearch-filenames 'dwim)