all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* input methods per file
@ 2008-01-24 14:29 Phillip Lord
  2008-01-24 14:44 ` Peter Dyballa
       [not found] ` <mailman.6474.1201185888.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Phillip Lord @ 2008-01-24 14:29 UTC (permalink / raw)
  To: help-gnu-emacs




I've been tearing my hair out about this, but being new to
internationalisation, I can't find an answer. 

I'm trying to set an input method on a per file basis. Most of the time I
don't use an one, but a few files that I have are written in a different
language. 

I've tried putting this at the end of the file. 


;; Local Variables: ***
;; eval: (set-input-method "italian-postfix") ***
;; End: ***


Which works well, but is a pain because I get asked a yes no question as eval
is risky. As I use desktop to re-open my files this makes startup a problem. 

Obviously I could make eval non risky, but obviously I don't want to do that.
I thought about language environments as well, but then this seems to require
evaluating a function, rather than setting a variable. 

The best I can have come up with is to set a variable, and then put a hook
into the open file process which runs set-input-method.

I'm missing something surely. Am I the only one who wants to do this? Is there
a better way to achieve the same thing?

Phil

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-01-25 12:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6472.1201185130.18990.help-gnu-emacs@gnu.org>
2008-01-24 15:04 ` input methods per file Thien-Thi Nguyen
2008-01-24 15:08 ` Johan Bockgård
2008-01-25 12:42   ` Phil Lord
2008-01-24 14:29 Phillip Lord
2008-01-24 14:44 ` Peter Dyballa
     [not found] ` <mailman.6474.1201185888.18990.help-gnu-emacs@gnu.org>
2008-01-25 12:39   ` Phil Lord

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.