all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: trouble turning off visual line mode
Date: Sun, 6 Sep 2009 22:13:42 -0700 (PDT)	[thread overview]
Message-ID: <f1848f25-8bb1-42b1-a890-d3d033d113df@u36g2000prn.googlegroups.com> (raw)
In-Reply-To: mailman.6141.1252274152.2239.help-gnu-emacs@gnu.org

On Sep 6, 2:55 pm, Allan Gottlieb <gottl...@nyu.edu> 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 ()
>   "For html, turn OFF visual-line-mode and turn-ON auto fill"
>   (message "ckpt 1")
>   (visual-line-mode -1)
>   (message "ckpt 2")
>   (auto-fill-mode 1)
>   (message "ckpt 3")
>   )
>
> I have it put in the html-mode-hook via
>
> (custom-set-variables
> ...
>  '(html-mode-hook (quote (ajg-alter-electric-html-tag ajg-html-visual-off-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


       reply	other threads:[~2009-09-07  5:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.6141.1252274152.2239.help-gnu-emacs@gnu.org>
2009-09-07  5:13 ` Xah Lee [this message]
2009-09-07 14:45   ` trouble turning off visual line mode Allan Gottlieb
2009-09-06 21:55 Allan Gottlieb
2009-09-07 15:08 ` Allan Gottlieb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f1848f25-8bb1-42b1-a890-d3d033d113df@u36g2000prn.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.