From 4a526ea2663b12b2b47bc3ec456faf6c74d62332 Mon Sep 17 00:00:00 2001 From: JSDurand 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 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dired-conf.el') 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) -- cgit v1.2.3-18-g5258