help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: setting line-length for mediawiki-mode?


From: hector
Subject: Re: setting line-length for mediawiki-mode?
Date: Thu, 16 Mar 2017 18:51:07 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Mar 16, 2017 at 04:51:10PM +0000, Sharon Kimble wrote:
> 
> I'm trying to set the line length for mediawiki mode, I'm using this -
> 
> --8<---------------cut here---------------start------------->8---
>   (toggle-truncate-lines 0)                    ; do not truncate
>   (abbrev-mode 1)
>   (set-fill-column 65000)
>   (auto-fill-mode 0)
> --8<---------------cut here---------------end--------------->8---
> 
> But I want it to be mediawiki specific, but how do I do it please?
> 

I think you could use a hook if this mode uses hooks.
Add to your .emacs

(add-hook 'mediawiki-mode-hook
  '(lambda ()
    (toggle-truncate-lines 0)                    ; do not truncate
    (abbrev-mode 1)
    (set-fill-column 65000)
    (auto-fill-mode 0)))



reply via email to

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