[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling modes

From: Emanuel Berg
Subject: Re: Enabling modes
Date: Mon, 11 Sep 2017 04:57:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Nick Helm wrote:

> 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.

Indeed, great idea!

Here are some examples what you can do with
both magic-mode-alist and auto-mode-alist:

Beware some of that code is for display
purposes ONLY :)

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]