From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: Override comment face in one mode only Date: Fri, 05 Jul 2013 12:30:15 +0200 Organization: Sebastien Vauban Message-ID: <86y59l47uw.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373020521 27243 80.91.229.3 (5 Jul 2013 10:35:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 10:35:21 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Fri Jul 05 12:35:23 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uv3MI-0005ZN-3v for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 12:35:22 +0200 Original-Received: from localhost ([::1]:36410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv3MH-0004NM-OP for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 06:35:21 -0400 X-Received: by 10.180.75.241 with SMTP id f17mr5477099wiw.7.1373020253971; Fri, 05 Jul 2013 03:30:53 -0700 (PDT) Original-Path: usenet.stanford.edu!mf3no3241629wib.1!news-out.google.com!md6ni42652wic.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!137.226.231.214.MISMATCH!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Injection-Info: mx05.eternal-september.org; posting-host="402b34550bd938aa98825778083dce0e"; logging-data="4206"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX19IlqOkCHB48eizb0ttLZFZ" User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (windows-nt) X-Url: Under construction... X-Archive: encrypt Cancel-Lock: sha1:xmJVKmBmg7HYWCSPuYZH7T1D14Q= sha1:A8RrCbSu/yasqqthd9or19Y4eHA= Original-Xref: usenet.stanford.edu gnu.emacs.help:199684 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:91951 Archived-At: Hello, I [1] would like to override the global green colored comment face just for LaTeX buffers. I tried to come up with the following: --8<---------------cut here---------------start------------->8--- (add-hook 'latex-mode-hook (lambda () (set-face-attribute 'font-lock-comment-face nil :weight 'bold :foreground "gray"))) --8<---------------cut here---------------end--------------->8--- but the comments are still green... And, is it possible to have a local definition of a face? Or would gray become the color for all buffers (LaTeX and others)? Best regards, Seb [1] A friend of mine, in fact... -- Sebastien Vauban