help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Emacs22: set the input method to latin-1-prefix


From: Stefan Monnier
Subject: Re: Emacs22: set the input method to latin-1-prefix
Date: Wed, 10 Oct 2007 12:16:12 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

> But I would be grateful if someone could point me to a small,
> practical example how to set the default input method by a function
> and add this function to a major mode hook. Or - even better - give me
> a small code snippet.

There are many files where I like to use greek letters and other funny math
symbols, via the TeX input method, so I add the following to the end of the
file:

 * Local Variables:
 * eval: (activate-input-method "TeX")
 * End:

and I then added

   (put 'activate-input-method 'safe-local-eval-function t)

to tell Emacs that the above `eval' can be executed without first asking me
for permission.


        Stefan


reply via email to

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