unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sebastian Tennant <sdt@sebyte.me>
To: help-gnu-emacs@gnu.org
Subject: Dired - highlight the name of the directory in directory headers
Date: Wed, 18 Nov 2020 17:45:56 +0000	[thread overview]
Message-ID: <87d00alfsb.fsf@sebyte.me> (raw)

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



             reply	other threads:[~2020-11-18 17:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18 17:45 Sebastian Tennant [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

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=87d00alfsb.fsf@sebyte.me \
    --to=sdt@sebyte.me \
    --cc=help-gnu-emacs@gnu.org \
    /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).