From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rupert Swarbrick Newsgroups: gmane.emacs.help Subject: Re: Default input method Date: Wed, 03 Sep 2008 13:08:28 +0100 Organization: albasani.net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1220445700 1115 80.91.229.12 (3 Sep 2008 12:41:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2008 12:41:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 03 14:42:34 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kargl-0003Ae-DM for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 14:42:23 +0200 Original-Received: from localhost ([127.0.0.1]:42392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Karfm-0000In-8y for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 08:41:22 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.straub-nv.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-X-Trace: news.albasani.net al6pVH3ivE0PsWOcdE8quKaDFK9qWrSNJPgwZyeiqJ8U0G1alJHedGRwFUx0Lp+Uaef1QtSDOnVNgvFyhm/f/Lyb54DS2usYdh7155SR/8CQMUZKAmCGXuD2fEE2sc/9 Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Wed, 3 Sep 2008 12:08:28 +0000 (UTC) X-User-ID: 1RDNQdCOkESB+yO7TNz+YFk+PWJ1RXXtP9rkjgzNmMc= Cancel-Lock: sha1:I9xU/fhFwPyuNp1gPNLxhb+wTIc= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) X-NNTP-Posting-Host: I6ktrJU1TPevw3epdMvJd+DLKzZgJWhiXV5VJc0ST2c= Original-Xref: news.stanford.edu gnu.emacs.help:161873 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57220 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Maur=ED=ADcio writes: > Hi, > > I usually do > > M-x set-input-method ucs > > at every buffer I edit. Is > it possible to set it once > for all buffers in .emacs? > > Thanks, > Maur=EDcio How about: (add-hook 'find-file-hook (lambda () (set-input-method "ucs"))) Although, this only works with found files: I'm not sure whether there's a "new buffer" hook. So, for example, this doesn't work on new mail in gnus. That said, C-\ will toggle the "current input method", which I often use, since the randomly underlined "U"s that keep appearing annoy me after a while. Rupert --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iJwEAQECAAYFAki+fjwACgkQRtd/pJbYVoZWJwP+Np1+L5riAuX9vdoVmjpz0lNP gOkzwO8crjZJbvY0q07tf0Luz2ty5cj4IhzAPjF5xYiRSPTGunppQ7XOwfOx+dWG 7LKF+4rMBTLpAUwUC28YjOMH08o2lTNywlhH56T2WpCr/yG7gDc4ZHWSVk0soEjj xXLG1S5WUnPxFnmU3RQ= =YR16 -----END PGP SIGNATURE----- --=-=-=--