all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Astrid Kuhr <a.kuhr@web.de>
Subject: How to color full line in dired
Date: 20 Nov 2002 13:01:31 +0100	[thread overview]
Message-ID: <i87lm3obgbo.fsf@isr141.isr.kfa-juelich.de> (raw)


Hello!

On emacs 19.34 I had following lines in my .emacs:

 ;;--------------------------------------------------------------------- 
 ;; font-lock fuer die ganze Zeile im dired-mode
 ;;--------------------------------------------------------------------- 
 (setq dired-font-lock-keywords
 '(
   ;; Put directory headers in italics.
   ("^  \\(/.+\\)" 1 font-lock-dired-header-face)
   ;; Put symlinks in bold italics.
   ("^\\(.*[^ ]+\\) -> [^ ]+$" . font-lock-dired-link-face)
   ;; Put marks in bold.
   ("^[^ ].*$" . font-lock-reference-face)
   ;; Put files that are subdirectories in bold.
   ("^..d.* \\([^ ]+\\)$" . font-lock-dired-dir-face)
   ;; Put Trash in green
   ("^.*~$"    . font-lock-dired-trash-face)
   ("^.*#*#$"  . font-lock-dired-trash-face)
   ("^.*\\.o$" . font-lock-dired-trash-face)
   ("^.*\\.elc$" . font-lock-dired-trash-face)
   ("^.*\\.aux$" . font-lock-dired-trash-face)
   ("^.*\\.div$" . font-lock-dired-trash-face)
   ("^.*\\.idx$" . font-lock-dired-trash-face)
   ("^.*\\.lof$" . font-lock-dired-trash-face)
   ("^.*\\.lot$" . font-lock-dired-trash-face)
   ("^.*\\.toc$" . font-lock-dired-trash-face)
   ("^.*\\.log$" . font-lock-dired-trash-face))
 )
 (defvar font-lock-face-attributes 					 
 (list
  ;;                                 
  (list 'font-lock-dired-link-face "Firebrick"        nil nil t   nil)
  (list 'font-lock-dired-trash-face "ForestGreen"     nil nil nil nil)
  (list 'font-lock-dired-header-face "tomato"         nil t   nil nil)
  (list 'font-lock-dired-dir-face "blue"              nil nil nil nil)
  )
 )

For highlighting the hole line in the dired mode, e.g. of a directory.
It works very well.

But now I change to emacs 20.5.3 and want to get the same result.
How can I define in the new emacs some additional font-lock-dired
keywords like the font-lock-dired-header-face? And how can I then
describe, which lines should be then with this color?

Regards, Astrid

             reply	other threads:[~2002-11-20 12:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-20 12:01 Astrid Kuhr [this message]
2002-11-21 23:54 ` How to color full line in dired Kin Cho
2002-11-24 11:51   ` Astrid Kuhr
2002-11-23 21:22 ` Kai Großjohann
2002-11-24 11:51   ` Astrid Kuhr
2002-11-24 14:56     ` Kai Großjohann
2002-11-24 16:08       ` Astrid Kuhr
2002-11-24 15:51     ` lawrence mitchell
2002-11-24 16:10       ` Astrid Kuhr

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=i87lm3obgbo.fsf@isr141.isr.kfa-juelich.de \
    --to=a.kuhr@web.de \
    --cc=a.kuhr@fz-juelich.de \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.