all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to color full line in dired
@ 2002-11-20 12:01 Astrid Kuhr
  2002-11-21 23:54 ` Kin Cho
  2002-11-23 21:22 ` Kai Großjohann
  0 siblings, 2 replies; 9+ messages in thread
From: Astrid Kuhr @ 2002-11-20 12:01 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-11-24 16:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-20 12:01 How to color full line in dired Astrid Kuhr
2002-11-21 23:54 ` 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

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.