From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nick Helm Newsgroups: gmane.emacs.help Subject: Re: Enabling modes Date: Mon, 11 Sep 2017 14:41:51 +1200 Message-ID: References: <87wp57eqz1.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505097770 5786 195.159.176.226 (11 Sep 2017 02:42:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2017 02:42:50 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 11 04:42:44 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 1drEgG-0000qe-TS for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Sep 2017 04:42:37 +0200 Original-Received: from localhost ([::1]:55102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drEgO-0006O0-4G for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Sep 2017 22:42:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drEfw-0006Nn-32 for help-gnu-emacs@gnu.org; Sun, 10 Sep 2017 22:42:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drEfs-00010U-TO for help-gnu-emacs@gnu.org; Sun, 10 Sep 2017 22:42:16 -0400 Original-Received: from mail-sy3aus01on0129.outbound.protection.outlook.com ([104.47.117.129]:45291 helo=AUS01-SY3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drEfs-0000yo-9d for help-gnu-emacs@gnu.org; Sun, 10 Sep 2017 22:42:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenpointcomms.onmicrosoft.com; s=selector1-tenpoint-co-nz; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QSP/dtfi8ErymK2E6o/401YAFAAraAHj9EewmYDVMb0=; b=POjwk16aDGMbApOG2eThKl2T6oKq6E4Qmt/BElQWD6lBQ39JnjrJN7iucDlgUkHS/gGp8pxsOX0asmDU2yhExx2P8QSab2MQx9EXzl+hul3JWjtIFboY40p5pH2ujxt52SOv3qarOGMwMyc6kmCOCCHvZ1OTTMWy/I1bS6rWd+8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nick@tenpoint.co.nz; Original-Received: from oberon (125.239.174.128) by MEXPR01MB1064.ausprd01.prod.outlook.com (10.169.163.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Mon, 11 Sep 2017 02:42:04 +0000 In-Reply-To: <87wp57eqz1.fsf@robertthorpeconsulting.com> (Robert Thorpe's message of "Sat, 09 Sep 2017 18:12:18 +0100") X-Originating-IP: [125.239.174.128] X-ClientProxiedBy: PS2P216CA0056.KORP216.PROD.OUTLOOK.COM (10.174.27.18) To MEXPR01MB1064.ausprd01.prod.outlook.com (10.169.163.11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 80b44c45-bb53-4353-cd7a-08d4f8beb0ab X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(2017082002075)(300000503095)(300135400095)(201703131423075)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MEXPR01MB1064; X-Microsoft-Exchange-Diagnostics: 1; MEXPR01MB1064; 3:hrbOoQtXuaJPXrZaM6l0cS8DkDo1hR8VQojttyMNpJ1QAipFuf0AzzWhb8mWqobpcbXgHGtApDML3kN6Pe63ha6cXllSFkEWPEgI68GZHQ4f0QotXlmrVTYfa/WhC5YEpIKcEGj2ogzGR0pKNyp0RCVS5TScbs36UocWUXaQcX7kR8D8oIyzh2p7N6ohgOgFyiX6vEl5hErCNkl7LmSlcXtBbVDhkKlDwxaza5ALKauVvx4tqr1gLZzn2PD3DJ2f; 25:dXLCahqeed4LIdECZJcCtEBlGs3cHQAzM4jCuqgRkdZ7l4kypAJU1c+Ee47b1TwTLl6tu7tNVuUpPKmpvQ5/BscDr3YXIDpEUfnPbeFvpEbEHlXaTWSS9aL9Ypk7yDcjxBR3YFMKMjtJ157TskQyDuMTiG67T9BQSuwJgLXnVrLArFD9PAWzEaRuuvDCFsWoRnzgd3sIF9Qt/Sy6f1RfsvdEz3dTh7j1MxHffDW41ZDPzJChRMW+tOuiBRq/UO/c6Sy4n9r1585lAKwkd1+9wwHu/ykBpgqSl+c+thKl7ds7RMzWR7NjiSdsCwh3GuuXEoHh+79BRyVfctdYmK8ZOQ==; 31:9mrYGWjFu5JsBcgIii9fn9Xzsd6fy0Po8qih41ngREzahyfkHf1QfiL87xn15m04dRFwUFnC/GP9yFXUWlcgCjTBbIfd44dywLe74e7EkiHB7MkHSCvphdFMpOmjdnoUpJUV8mqQxrKofD0LxH+CX+2F03tX9GRu9G1yfN7iajgP7TEtLPAiWFNHsHCu4AyYTg1GCIza9hkybaOpFRQjGnTutTdlclwqb1NXRkgp2 X-MS-TrafficTypeDiagnostic: MEXPR01MB1064: X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(20161123560025)(20161123558100)(2016111802025)(20161123564025)(201703131423075)(201703061421075)(20161123555025)(20161123562025)(6072148)(6043046)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MEXPR01MB1064; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MEXPR01MB1064; X-Microsoft-Exchange-Diagnostics: 1; MEXPR01MB1064; 4:61OvYr55O00E/cq9IPCFOJFtY7OsYRJm5aBSu02/+2YitIAe8W6mHLWLRj5epDE7d5pfD64lTUsmEmUH9JNzPBAbiLXvqzWKM5WEIFtfEMEeSFzXU4H83PKEer0qIXUtDkKVUNIYTlIH91IWEb57nGSVzKOHtgdUd1c23Upb2TsqySLsFIlpsfjVlK+OD3zXtIprIgfIIQz1/DPDUlzGe7BiV3uymzbLK7CokLZmi4escQBr5liq1quhJ//yEcaE X-Forefront-PRVS: 04270EF89C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(7370300001)(6009001)(199003)(189002)(50986999)(76176999)(54356999)(101416001)(81156014)(3846002)(81166006)(5660300001)(7116003)(6116002)(50466002)(25786009)(74482002)(8676002)(6486002)(189998001)(221733001)(5003940100001)(66066001)(3480700004)(47776003)(229853002)(48376002)(508600001)(86362001)(36756003)(305945005)(2906002)(7736002)(6496005)(42186005)(110136004)(6666003)(33646002)(6246003)(4001350100001)(53936002)(6916009)(68736007)(105586002)(106356001)(2351001)(83506001)(2361001)(2950100002)(7350300001)(42882006)(97736004); DIR:OUT; SFP:1102; SCL:1; SRVR:MEXPR01MB1064; H:oberon; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: tenpoint.co.nz does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MEXPR01MB1064; 23:S8Qxj1v6X+nO0wedM+APa6ck/UBWyi8RmrrXnD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QBsy9n4yxezLb1LODfaXJJVuaVRMCprl4Z4jO2G5Fv9Ot2cP20yIzres5yeqhSA==; 5:XG6OiRB/EvgRh5QBRk6zOuw/zeL+97UOITNot65wZLyuDhppE1ziK42rGtHK6YI+EpGNj86XDYEZQxw2rqIKofY4HK+PwmIfGvl03UH/vNUH4Dz1nnxArZANwbMJUlDVUWHdm7hvfBht38Vgh2BwrA==; 24:UsZM6rWr/jNHd3KGzoPBeNYSe4n+y1YmGH4EqLvjsdl7wP55Wu14H7Rc/q2qRtkFXUmyo7rlxRbH7m0CtBXXR+XEL5glJ6ISHP/XchFYDRc=; 7:bTM8D9F8jXXUFFeWT4xshkdY2Sorbdxt5LGw/M7GgcwI3dg+SaJQG51RQxAIrqWmr9sdTjmOwCZ1ip9W6A+h/9LTf6FTH6gfdeVkapvbLx5fr2v0WqokH06JIpm2dY11VVDVdcuFWJWH99rCwG4JBj6zIOf8K/FS/kOVkfZAlRgVhjh5CeLgqc4AZLUP2VgUnA6pxvvVEzztfuuJip2LElEAFQc2/wtVv SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: tenpoint.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2017 02:42:04.7137 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MEXPR01MB1064 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.117.129 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:114237 Archived-At: Robert Thorpe writes: > I use global-visual-line mode. I've found a problem with it for one > file type that I use (tab-separated values). > > So, what I want to do is set visual-line-mode in all buffers except > those particular ones. > > 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? You could use mode hooks, but if you'd prefer to turn it off just for files with a TSV extension you could add an entry to auto-mode-alist. Something like this in your init should work: (global-visual-line-mode) (add-to-list 'auto-mode-alist '("\\.tsv\\'" . (lambda () (visual-line-mode -1)))) Alternatively, you could use magic-mode-alist to detect the tabbed format itself, which would work for any extension.