From: hector <hectorlahoz@gmail.com>
To: Sharon Kimble <boudiccas@skimble.plus.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: setting line-length for mediawiki-mode?
Date: Thu, 16 Mar 2017 18:51:07 +0100 [thread overview]
Message-ID: <20170316175107.GA16002@workstation> (raw)
In-Reply-To: <8737edupvl.fsf@skimble.plus.com>
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)))
next prev parent reply other threads:[~2017-03-16 17:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-16 16:51 setting line-length for mediawiki-mode? Sharon Kimble
2017-03-16 17:51 ` hector [this message]
2017-03-16 19:08 ` Stefan Monnier
2017-03-16 20:52 ` Alex Kost
2017-03-16 21:20 ` hector
2017-03-17 19:45 ` Nathanael Schweers
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170316175107.GA16002@workstation \
--to=hectorlahoz@gmail.com \
--cc=boudiccas@skimble.plus.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.
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).