unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* trouble turning off visual line mode
@ 2009-09-06 21:55 Allan Gottlieb
  2009-09-07 15:08 ` Allan Gottlieb
  0 siblings, 1 reply; 4+ messages in thread
From: Allan Gottlieb @ 2009-09-06 21:55 UTC (permalink / raw)
  To: help-gnu-emacs

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.

Any help would be appreciated.
thanks,
allan

PS.

All three ckpt msgs are in *Message*, with nothing in between
The mode line shows wrap and fill




^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <mailman.6141.1252274152.2239.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2009-09-07 15:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-06 21:55 trouble turning off visual line mode Allan Gottlieb
2009-09-07 15:08 ` Allan Gottlieb
     [not found] <mailman.6141.1252274152.2239.help-gnu-emacs@gnu.org>
2009-09-07  5:13 ` Xah Lee
2009-09-07 14:45   ` Allan Gottlieb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).