From: Drew Adams <drew.adams@oracle.com>
To: Sebastian Tennant <sdt@sebyte.me>, help-gnu-emacs@gnu.org
Subject: RE: Dired - highlight the name of the directory in directory headers
Date: Wed, 18 Nov 2020 15:08:51 -0800 (PST) [thread overview]
Message-ID: <fa7624b5-9883-4b20-82dc-e288683b9d88@default> (raw)
In-Reply-To: <87pn4apps7.fsf@sebyte.me>
> I thought it would be easy to highlight the name of the directory in
> directory headers in Dired buffers. For example:
>
> /home/bob/Notes:
> ^^^^^
> My first approach was to use font-lock-add-keywords:
>
> (font-lock-add-keywords 'dired-mode '("\\([^/]+\\):\n" . (1 'bold)))
>
> but try as I might I could not get this to work.
FWIW, Dired+ highlights this line (with face
`diredp-dir-heading') using this font-lock entry:
'("^ \\(.+:\\)$" 1 diredp-dir-heading) ; Directory headers
https://www.emacswiki.org/emacs/download/dired%2b.el
next prev parent reply other threads:[~2020-11-18 23:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-18 16:56 Dired - highlight the name of the directory in directory headers Sebastian Tennant
2020-11-18 18:42 ` Michael Heerdegen
2020-11-18 23:08 ` Drew Adams [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-11-18 17:45 Sebastian Tennant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fa7624b5-9883-4b20-82dc-e288683b9d88@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=sdt@sebyte.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).