emacs-devel
[Top][All Lists]
Advanced

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

Re: Activate an input-method from file-local variables?


From: Stefan Monnier
Subject: Re: Activate an input-method from file-local variables?
Date: Sun, 16 Jul 2006 08:32:45 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> AFAICT this does not do what I want: it doesn't *activate* the
>> input method.  You still need to hit C-\ to activate it.

> Ah, excuse my misunderstanding. Looking through the source of
> activate-input-method, as well as setting current-input-method, it calls
> input-method-specific initialisation code, so simply setting a file-local
> variable would seem to be impossible. You could, of course, add something
> like the below to your init file, and specify hack-activate-input-method
> appropriately in the files you want it to work for. 

That seems much more complex than my current solution of using
`eval: (activate-input-method "TeX")' and adding
(put 'activate-input-method 'safe-local-eval-function t).


        Stefan




reply via email to

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