From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hector Newsgroups: gmane.emacs.help Subject: Re: setting line-length for mediawiki-mode? Date: Thu, 16 Mar 2017 18:51:07 +0100 Message-ID: <20170316175107.GA16002@workstation> References: <8737edupvl.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1489686928 29037 195.159.176.226 (16 Mar 2017 17:55:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Mar 2017 17:55:28 +0000 (UTC) User-Agent: Mutt/1.5.20 (2009-06-14) Cc: help-gnu-emacs@gnu.org To: Sharon Kimble Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 16 18:55:25 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coZcR-00076j-BW for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Mar 2017 18:55:23 +0100 Original-Received: from localhost ([::1]:45059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coZcX-00006g-Fv for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Mar 2017 13:55:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coZc1-00006Y-U6 for help-gnu-emacs@gnu.org; Thu, 16 Mar 2017 13:54:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coZby-0004a5-SG for help-gnu-emacs@gnu.org; Thu, 16 Mar 2017 13:54:58 -0400 Original-Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:35772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1coZby-0004YL-MK for help-gnu-emacs@gnu.org; Thu, 16 Mar 2017 13:54:54 -0400 Original-Received: by mail-wm0-x242.google.com with SMTP id z133so4157470wmb.2 for ; Thu, 16 Mar 2017 10:54:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4AdTzDdkD2GOE/6s9I0VlaLeYJLg1hwPDQVpY52Rybc=; b=Sn1v6j0wk8loAtcSUcWAwcKTt93ZRzSnnqaKJ+xiiP8RGLZCS8Cblxey5FPnXERno1 1SmX6HJdrFKm8IWtkkX//CIllP7lbyWqlIx1hdy8aRoF9R9sSp09bHQL8KU+VWDteHto tiQPqSFzEGg9j9AAS4KonB+61Dr/2kkYi/TpfPeUZMkEBfTg3zHjtJk2hYIJd3ciDodv Av0QFhaytdUfrCMOe2bqlQ0b8DylD+dssXLFSTDoGCfowpWWwCkARGGa0akQ1UT2goxm 0nwpASQLLQP5/tqsMNvi2UInKEwC+eyf0DyXrO4Cwh1wuZul0F6EJRUKlDyTrAF/0nRP QmOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4AdTzDdkD2GOE/6s9I0VlaLeYJLg1hwPDQVpY52Rybc=; b=Xik+Tx59Idh+VGgPA4K6rnZVr+pNWuulPzsl6/i1i91ty7QAwXgzBHWJOwb7OEYQix vTPhYI/uvLiRrDshescCq41wftiKZMPpldvpDCqFWQ6/UMIgett786LhIze2f2t5iL1g 2mDduybXxcp7ZdXo88cq51gI+p+tXtGBxZhNc5mEC3/11MRvQyYciyl/0n+HicnyQNlH 5MWHtSdj0DPZcFS3n1bAXMTjenFk4UTdqQSKKlF24YyDhKjVJFRn0aAIr0a7lyRAwHxq jlgb62qS9i4fN3b+FSzDvO0X6EIh00w3SgjUU5wvXEvtXPe//UJAO8OfdKfb19VM/KnI tq1w== X-Gm-Message-State: AFeK/H0p/XZ1Q/NzoDpYEWUlEHUYAtyX8tuPbvCKCrJesv0JeHKwbEW8auylMjmLEig+Lg== X-Received: by 10.28.138.140 with SMTP id m134mr26678803wmd.134.1489686893448; Thu, 16 Mar 2017 10:54:53 -0700 (PDT) Original-Received: from workstation ([95.61.67.191]) by smtp.gmail.com with ESMTPSA id c35sm7014508wra.1.2017.03.16.10.54.52 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 16 Mar 2017 10:54:52 -0700 (PDT) X-Google-Original-From: hector Content-Disposition: inline In-Reply-To: <8737edupvl.fsf@skimble.plus.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::242 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112580 Archived-At: 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)))