[ESS] Re: how to disable auto-fill-mode for editing R / S
maechler at stat.math.ethz.ch
Thu Apr 7 09:23:18 CEST 2005
>>>>> "Jing" == Jing Zhou <jyzz88 at gmail.com>
>>>>> on Tue, 29 Mar 2005 14:21:08 -0500 writes:
Jing> I tried the two methods but they didn't work. Hope that next ESS
Jing> version can have a modification on this issue.
Yes. Auto-fill-mode will be turned off by default in ESS 5.2.7;
It was an accident that it's been turned on irrespectively of
Furthermore the [ESS] menu's [Ess Edit] submenu will get an
entry "Toggle Auto-Fill Mode" for users who might have forgotten
about M-x auto-fill-mode.
Also, users who do like auto-fill-mode for editing S / R source,
would have something like
'(lambda () (turn-on-auto-fill)))
in their ~/.emacs (or equivalent emacs startup) file.
ESS 5.2.7 is planned to be released sometimes next week.
I hope this issue will then be resolved satisfactorily.
Martin Maechler, ETH Zurich
Jing> -----Original Message-----
Jing> Kiermeier, Andreas (PIRSA - SARDI) Kiermeier.Andreas at saugov.sa.gov.au
Jing> Tue Mar 29 10:10:08 CEST 2005
Andreas> wouldn't the following mode hook work?
Andreas> (add-hook 'ess-mode-hook
Andreas> (lambda ()
Andreas> (auto-fill-mode 0)))
Maybe this needs to be modified to
(add-hook 'ess-mode-hook '(lambda () (auto-fill-mode 0)))
i.e., an extra " ' " before "(lambda .."
Andreas> In addition, I know how turn a mode on using a
Andreas> local variable, but could you not use somthing
Andreas> similar to turn it off? Maybe the following (of
Andreas> course, you should be careful with using eval as a
Andreas> local file variable and you require
Andreas> enable-local-eval to be true or it probably won't
Andreas> ### Local Variables:
Andreas> ### comment-start: "## "
Andreas> ### eval: (auto-fill-mode 0)
Andreas> ### End:
Andreas> I'm not quite sure whether they work as I currently
Andreas> can't try it out, but Andreas, you might like to
Andreas> experiment with it.
More information about the ESS-help