From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Nick Helm <nick@tenpoint.co.nz>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Enabling modes
Date: Tue, 12 Sep 2017 23:30:27 +0100 [thread overview]
Message-ID: <87bmmfturg.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <m28thm6jo0.fsf@tenpoint.co.nz> (message from Nick Helm on Mon, 11 Sep 2017 14:41:51 +1200)
Nick Helm <nick@tenpoint.co.nz> writes:
> Robert Thorpe <rt@robertthorpeconsulting.com> writes:
...
>> 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.
That seems like a good idea.
BR,
Robert Thorpe
next prev parent reply other threads:[~2017-09-12 22:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-09 17:12 Enabling modes Robert Thorpe
2017-09-09 17:50 ` Eli Zaretskii
2017-09-12 22:35 ` Robert Thorpe
2017-09-12 22:45 ` Emanuel Berg
2017-09-11 2:41 ` Nick Helm
2017-09-12 22:30 ` Robert Thorpe [this message]
[not found] ` <mailman.294.1505097738.14750.help-gnu-emacs@gnu.org>
2017-09-11 2:57 ` Emanuel Berg
[not found] <mailman.198.1504977154.14750.help-gnu-emacs@gnu.org>
2017-09-09 17:27 ` Emanuel Berg
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=87bmmfturg.fsf@robertthorpeconsulting.com \
--to=rt@robertthorpeconsulting.com \
--cc=help-gnu-emacs@gnu.org \
--cc=nick@tenpoint.co.nz \
/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).