From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: disallow font-lock-mode for a given buffer Date: Thu, 29 May 2003 10:27:06 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <843ciynoo5.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054197110 2498 80.91.224.249 (29 May 2003 08:31:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 29 May 2003 08:31:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 29 10:31:49 2003 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 19LIpB-0000eA-00 for ; Thu, 29 May 2003 10:31:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LIpC-0007zK-A5 for gnu-help-gnu-emacs@m.gmane.org; Thu, 29 May 2003 04:31:50 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!pd9e1e519.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: pd9e1e519.dip.t-dialin.net (217.225.229.25) Original-X-Trace: fu-berlin.de 1054196849 5627181 217.225.229.25 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:4W6aeNtukC5jY8Mf/y6QoLYNcOk= Original-Xref: shelby.stanford.edu gnu.emacs.help:113831 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10326 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10326 "James H. Cloos Jr." writes: > I tried the probably naïve: > > (add-hook 'gnus-article-mode-hook '(font-lock-mode -1)) > (add-hook 'gnus-article-edit-mode-hook '(font-lock-mode -1)) You need a function that turns off font-lock-mode: (defun jhc-turn-off-font-lock () (font-lock-mode -1)) Then, add the function to the hooks: (add-hook 'gnus-article-edit-mode-hook 'jhc-turn-off-font-lock) Note that the article *display* is not done with font-lock. -- This line is not blank.