[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enabling modes
From: |
Robert Thorpe |
Subject: |
Re: Enabling modes |
Date: |
Tue, 12 Sep 2017 23:30:27 +0100 |
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