help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT?] disabling automatic line-break in emacs octave-mode


From: Carlo de Falco
Subject: Re: [OT?] disabling automatic line-break in emacs octave-mode
Date: Fri, 6 Nov 2009 11:38:20 +0100


On 6 Nov 2009, at 11:17, Francesco Potortì wrote:

I personally find the way emacs automatically breaks lines in octave-
mode very annoying and I was looking for a way to disable it.

Put this into your /.emacs file:

(add-hook 'octave-mode-hook (lambda () (auto-fill-mode 0)))

I found this in my .emacs:

(add-hook 'octave-mode-hook
          (lambda ()
            (abbrev-mode 1)
            (auto-fill-mode 1)
            (if (eq window-system 'x)
                (font-lock-mode 1))))


I changed (auto-fill-mode 1) to (auto-fill-mode 0) and it worked.
great, thanks!
c.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]