[Top][All Lists]

[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:35:11 +0100

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 <Detect TSV file>
               (visual-line-mode 1))))

Is that better than disabling it afterwards as Nick Helm suggested?

Robert Thorpe

reply via email to

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