From 4a526ea2663b12b2b47bc3ec456faf6c74d62332 Mon Sep 17 00:00:00 2001
From: JSDurand <mmemmew@gmail.com>
Date: Sat, 18 Dec 2021 01:58:57 +0800
Subject: 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.
---
 dired-conf.el | 5 ++++-
 init.el       | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

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)
-- 
cgit v1.2.3-18-g5258