From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Astrid Kuhr Newsgroups: gmane.emacs.help Subject: How to color full line in dired Date: 20 Nov 2002 13:01:31 +0100 Organization: web.de Sender: help-gnu-emacs-admin@gnu.org Message-ID: Reply-To: a.kuhr@fz-juelich.de NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1037794231 11705 80.91.224.249 (20 Nov 2002 12:10:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2002 12:10:31 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ETgb-00032f-00 for ; Wed, 20 Nov 2002 13:10:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18ETch-0005iH-00; Wed, 20 Nov 2002 07:06:27 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!uni-erlangen.de!news-nue1.dfn.de!news-koe1.dfn.de!news.kfa-juelich.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: isr141 Original-X-Trace: zam602.zam.kfa-juelich.de 1037793693 450997 134.94.134.108 (20 Nov 2002 12:01:33 GMT) Original-X-Complaints-To: usenet@fz-juelich.de Original-NNTP-Posting-Date: Wed, 20 Nov 2002 12:01:33 +0000 (UTC) X-Newsreader: Gnus v5.3/Emacs 19.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:107229 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3784 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3784 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