all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Aidan Kehoe <kehoea@parhasard.net>
Cc: emacs-devel@gnu.org
Subject: Re: Activate an input-method from file-local variables?
Date: Sat, 15 Jul 2006 16:47:38 +0200	[thread overview]
Message-ID: <17593.10.639545.231797@parhasard.net> (raw)
In-Reply-To: <jwvr70nq6mh.fsf-monnier+emacs@gnu.org>


 Ar an cúigiú lá déag de mí Iúil, scríobh Stefan Monnier: 

 > Many of the files I edit use funny unicode math chars which I enter with the
 > help of the "TeX" input method. 

 > How can I make it such that those files
 > have the TeX input method activated as soon as I open them?
 > 
 > Currently I add an `eval: (activate-input-method "TeX")' to the
 > local-variables and then arrange for it not to trigger a prompt, but it
 > seems like there should be a more "official" way to do it.

I do a 

  (make-variable-buffer-local 'default-input-method)

in my init file and then add

  default-input-method: "TeX"

to the local-variables of the relevant files. (I also give sensible default
values for default-input-method and input-method-history (also made
buffer-local) in my init file.) 

-- 
Santa Maradona, priez pour moi!

  reply	other threads:[~2006-07-15 14:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-15 14:38 Activate an input-method from file-local variables? Stefan Monnier
2006-07-15 14:47 ` Aidan Kehoe [this message]
2006-07-15 14:55   ` David Kastrup
2006-07-15 16:55     ` Aidan Kehoe
2006-07-16  6:25       ` Richard Stallman
2006-07-16 11:59         ` Aidan Kehoe
2006-07-17  1:41           ` Richard Stallman
2006-07-17  7:29             ` Aidan Kehoe
2006-07-18  0:12               ` Richard Stallman
2006-07-15 21:57   ` Stefan Monnier
2006-07-16 11:36     ` Aidan Kehoe
2006-07-16 12:32       ` Stefan Monnier
2006-07-18  1:25         ` Kenichi Handa
2006-07-18 14:44           ` Stefan Monnier
2006-07-19  0:45             ` Kenichi Handa
2006-07-18 14:59           ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17593.10.639545.231797@parhasard.net \
    --to=kehoea@parhasard.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.