From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Enabling modes Date: Tue, 12 Sep 2017 23:35:11 +0100 Message-ID: <878thjtujk.fsf@robertthorpeconsulting.com> References: <83poazvk1d.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505255775 6290 195.159.176.226 (12 Sep 2017 22:36:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Sep 2017 22:36:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 13 00:36:10 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 1drtmi-00012c-Hx for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Sep 2017 00:36:00 +0200 Original-Received: from localhost ([::1]:39023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drtmp-0007mj-SS for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Sep 2017 18:36:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drtm5-0007lY-3H for help-gnu-emacs@gnu.org; Tue, 12 Sep 2017 18:35:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drtm1-0003Hd-CJ for help-gnu-emacs@gnu.org; Tue, 12 Sep 2017 18:35:21 -0400 Original-Received: from outbound-smtp09.blacknight.com ([46.22.139.14]:43591) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drtm1-0003G9-5a for help-gnu-emacs@gnu.org; Tue, 12 Sep 2017 18:35:17 -0400 Original-Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp09.blacknight.com (Postfix) with ESMTPS id 163601C22E6 for ; Tue, 12 Sep 2017 23:35:14 +0100 (IST) Original-Received: (qmail 11226 invoked from network); 12 Sep 2017 22:35:14 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[51.37.105.27]) by 81.17.254.9 with ESMTPSA (AES128-SHA encrypted, authenticated); 12 Sep 2017 22:35:13 -0000 In-Reply-To: <83poazvk1d.fsf@gnu.org> (message from Eli Zaretskii on Sat, 09 Sep 2017 20:50:06 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 46.22.139.14 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:114249 Archived-At: Eli Zaretskii writes: >> From: Robert Thorpe >> Date: Sat, 09 Sep 2017 18:12:18 +0100 >> >> Usually modes are set up the other way around, by including things. >> Mode X is triggered for languages Y and Z, for example. I want it the >> opposite way around, I want visual-line-mode to be always enabled unless >> I have a tab-separated-value file. >> >> Is that possible? > > Did you try to do this in the mode hook? Do you mean something like this? (add-hook 'text-mode-hook (lambda () (unless (visual-line-mode 1)))) Is that better than disabling it afterwards as Nick Helm suggested? BR, Robert Thorpe