From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.devel Subject: Re: Activate an input-method from file-local variables? Date: Sat, 15 Jul 2006 16:47:38 +0200 Message-ID: <17593.10.639545.231797@parhasard.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1152974907 29781 80.91.229.2 (15 Jul 2006 14:48:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2006 14:48:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 15 16:48:23 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G1lRD-0003KO-J5 for ged-emacs-devel@m.gmane.org; Sat, 15 Jul 2006 16:48:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1lRC-000881-0a for ged-emacs-devel@m.gmane.org; Sat, 15 Jul 2006 10:48:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G1lQz-00087w-Si for emacs-devel@gnu.org; Sat, 15 Jul 2006 10:47:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G1lQw-00087b-TZ for emacs-devel@gnu.org; Sat, 15 Jul 2006 10:47:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1lQw-00087Y-Pd for emacs-devel@gnu.org; Sat, 15 Jul 2006 10:47:54 -0400 Original-Received: from [66.111.49.30] (helo=icarus.asclepian.ie) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G1lTA-0005ak-3g for emacs-devel@gnu.org; Sat, 15 Jul 2006 10:50:12 -0400 Original-Received: by icarus.asclepian.ie (Postfix, from userid 1003) id BAFC88008C; Sat, 15 Jul 2006 15:47:38 +0100 (IST) Original-To: Stefan Monnier In-Reply-To: X-Mailer: VM 7.17 under 21.5 (beta27) "fiddleheads" (+CVS-20060521) XEmacs Lucid X-Echelon-distraction: HRT SBU Rojdykarna SONANGOL Macintosh Security VLF X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57044 Archived-At: Ar an c=FAigi=FA l=E1 d=E9ag de m=ED I=FAil, scr=EDobh Stefan Monnier:=20 > Many of the files I edit use funny unicode math chars which I enter wi= th the > help of the "TeX" input method.=20 > How can I make it such that those files > have the TeX input method activated as soon as I open them? >=20 > Currently I add an `eval: (activate-input-method "TeX")' to the > local-variables and then arrange for it not to trigger a prompt, but i= t > seems like there should be a more "official" way to do it. I do a=20 (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 defau= lt values for default-input-method and input-method-history (also made buffer-local) in my init file.)=20 --=20 Santa Maradona, priez pour moi!