From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: trouble turning off visual line mode Date: Sun, 6 Sep 2009 22:13:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1252331815 4261 80.91.229.12 (7 Sep 2009 13:56:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Sep 2009 13:56:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 07 15:56:49 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mkei8-0007DD-Ow for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2009 15:56:49 +0200 Original-Received: from localhost ([127.0.0.1]:33403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mkei8-0003fK-6y for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2009 09:56:48 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!u36g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1252300422 13323 127.0.0.1 (7 Sep 2009 05:13:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 7 Sep 2009 05:13:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u36g2000prn.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.43 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172785 X-Mailman-Approved-At: Mon, 07 Sep 2009 09:55:00 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67931 Archived-At: On Sep 6, 2:55=A0pm, Allan Gottlieb wrote: > I have the following function in my .emacs > > ;; Want auto-fill and not visual-line-mode > ;; Define the function here; add to hook via customize > (defun ajg-html-visual-off-fill-on () > =A0 "For html, turn OFF visual-line-mode and turn-ON auto fill" > =A0 (message "ckpt 1") > =A0 (visual-line-mode -1) > =A0 (message "ckpt 2") > =A0 (auto-fill-mode 1) > =A0 (message "ckpt 3") > =A0 ) > > I have it put in the html-mode-hook via > > (custom-set-variables > ... > =A0'(html-mode-hook (quote (ajg-alter-electric-html-tag ajg-html-visual-o= ff-fill-on))) > ... > ) > > Yet when I visit an html file > auto-fill-mode is turned on as expected but > visual-line-mode is *not* turned off. for minor modes, the convention is 1 is on and 0 is off. i got a lesson of that recently from emacs devers too. it's in elisp manual under the minor mode section too. Xah