diff options
author | JSDurand <mmemmew@gmail.com> | 2021-12-18 01:58:57 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-12-18 01:58:57 +0800 |
commit | 4a526ea2663b12b2b47bc3ec456faf6c74d62332 (patch) | |
tree | 4ba9af3d182ff63ba4b4e66562ec28eb0c2f4313 | |
parent | 3057cdcd5090e0ee82de5335e01d8c3620bbb7bc (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.el | 5 | ||||
-rw-r--r-- | init.el | 1 |
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) @@ -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) |