summaryrefslogtreecommitdiff
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
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.
-rw-r--r--dired-conf.el5
-rw-r--r--init.el1
2 files changed, 5 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)
diff --git a/init.el b/init.el
index f248d7e..0369728 100644
--- a/init.el
+++ b/init.el
@@ -174,6 +174,7 @@ no effect."
notmuch-tree-mode-hook
org-agenda-mode-hook
tabulated-list-mode-hook
+ dired-mode-hook
blist-mode-hook)))
(mapc
(lambda (hook)