From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: activate input method Date: Tue, 29 May 2012 19:49:27 +0200 Message-ID: <4FC50C27.3070107@easy-emacs.de> References: <87396kktcf.fsf@ergodik.univ-brest.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1338313786 30180 80.91.229.3 (29 May 2012 17:49:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 17:49:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 29 19:49:45 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SZQYD-0005Z4-By for geh-help-gnu-emacs@m.gmane.org; Tue, 29 May 2012 19:49:45 +0200 Original-Received: from localhost ([::1]:60049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZQYD-0002U3-6K for geh-help-gnu-emacs@m.gmane.org; Tue, 29 May 2012 13:49:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZQY4-0002Tv-8y for help-gnu-emacs@gnu.org; Tue, 29 May 2012 13:49:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZQXz-00021L-Id for help-gnu-emacs@gnu.org; Tue, 29 May 2012 13:49:35 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.186]:51676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZQXz-00020q-9e for help-gnu-emacs@gnu.org; Tue, 29 May 2012 13:49:31 -0400 Original-Received: from [192.168.178.27] (brln-4d0c13b2.pool.mediaWays.net [77.12.19.178]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0MLyNI-1SevnI1YEu-007hpe; Tue, 29 May 2012 19:49:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120421 Thunderbird/12.0 In-Reply-To: <87396kktcf.fsf@ergodik.univ-brest.fr> X-Provags-ID: V02:K0:/GU4cdntwT4emLMn0iso3IlcZz2W6gZ3uq37cLU0pru vamyd0hw7fzBfeU2ZqTjfJwK+5hN3trdFVTzG8ZTMXNTpf+FK6 PZPXaD2i177MRE4Lw3cyx1qf0HRMNMWbrp3znvDPr9BIvZZmOd 1NnR+4oGyA6ukRpvTBZn86XI4L5o7Kgpi7FMT70B341Qp/Alwi BhWR07QKnzBo+9n8MXM2wWGiYoygcKiP/Ud2LL/lITI9BP6o6Z 3HoB33EAFVTUTEFxjOxeIy22IIjJNzmAdh1QPFAvv1EfOKNbQN tOxTUerAkIFFnV50fmT0LYwUA2Px34mbKMBvGkWuIAnI3z1wOE BUKbftY4/IEyoiXRwRCAZII/BvUMwsRuPV+SSIMhl X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.186 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85039 Archived-At: Am 28.05.2012 21:18, schrieb harven: > I am using this code to automatically activate the default input method > when a file is created. > > (add-hook 'find-file-hook > (lambda () (activate-input-method default-input-method))) > > But it does not handle buffers that are not related to a file, e.g. > buffers created using the switch-to-buffer command. > Is there a way to activate the input method for these newly created buffers ? > > Thanks. > if all buffer are in same mode, maybe bind it at the resp. mode-hook?