[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dired - highlight the name of the directory in directory headers
From: |
Sebastian Tennant |
Subject: |
Dired - highlight the name of the directory in directory headers |
Date: |
Wed, 18 Nov 2020 17:45:56 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hello all,
I reached for a timer because I've been working with them recently
but, of course, using advice is aprroximately one hundred times
better:
(advice-add
'dired-mode :after
(lambda (&rest args)
(hi-lock-face-buffer "\\([^/]+\\):\n" 'bold 1))
'((name . highlight-directory-name-in-headers)))
I'd still love to know why adding an 'ordinary' function to
dired-mode-hook doesn't work.
sebyte
--
Dorothy Annan Trevor Tennant database - DATTdb
http://dattdb.info