From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Activating input method globally Date: Sat, 03 Nov 2007 20:10:09 +0100 Message-ID: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194118139 17581 80.91.229.12 (3 Nov 2007 19:28:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Nov 2007 19:28:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 03 20:29:02 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IoOfv-0002R9-VD for ged-emacs-devel@m.gmane.org; Sat, 03 Nov 2007 20:28:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IoOfl-0001xg-NY for ged-emacs-devel@m.gmane.org; Sat, 03 Nov 2007 15:28:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IoOfg-0001s2-W9 for emacs-devel@gnu.org; Sat, 03 Nov 2007 15:28:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IoOff-0001nm-Bk for emacs-devel@gnu.org; Sat, 03 Nov 2007 15:28:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IoOff-0001nZ-7r for emacs-devel@gnu.org; Sat, 03 Nov 2007 15:28:39 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IoOfe-0006X5-JU for emacs-devel@gnu.org; Sat, 03 Nov 2007 15:28:39 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IoOfX-0008Or-4M for emacs-devel@gnu.org; Sat, 03 Nov 2007 19:28:31 +0000 Original-Received: from p54a94ee8.dip.t-dialin.net ([84.169.78.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Nov 2007 19:28:31 +0000 Original-Received: from Reiner.Steib by p54a94ee8.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Nov 2007 19:28:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54a94ee8.dip.t-dialin.net X-Face: 3Phac&+dw=IZHjhua]bp}LH<*p{qzj8u+ 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:82446 Archived-At: Hi, the manual says that `set-input-method' sets the input method buffer locally: ,----[ (info "(emacs)Select Input Method") ] | To choose an input method for the current buffer, use `C-x | C-\' (`set-input-method'). `---- It doesn't mention how to set it globally (AFAICS). What is the recommended way to achieve this? I think this should be documented. The best I could think about was adding `set-input-method' to `text-mode-hook': (add-hook 'text-mode-hook (lambda () (set-input-method "german-prefix"))) Background: This question popped up several times in German speaking Emacs/Gnus-related newsgroups. Some users use an American keyboard layout, but want to type German non-ascii characters (cf. `M-x describe-input-method RET german-...'). Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/