From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: activate input method Date: Mon, 28 May 2012 21:18:08 +0200 Organization: http://groups.google.com Message-ID: <87396kktcf.fsf@ergodik.univ-brest.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1338232821 32051 80.91.229.3 (28 May 2012 19:20:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 May 2012 19:20:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 28 21:20:21 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 1SZ5UK-0001Uz-UM for geh-help-gnu-emacs@m.gmane.org; Mon, 28 May 2012 21:20:21 +0200 Original-Received: from localhost ([::1]:34263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZ5UK-0004se-Ju for geh-help-gnu-emacs@m.gmane.org; Mon, 28 May 2012 15:20:20 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uio.no!quimby.gnus.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: coa29-2-78-233-232-132.fbx.proxad.net Original-X-Trace: quimby.gnus.org 1338232698 28712 78.233.232.132 (28 May 2012 19:18:18 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 28 May 2012 19:18:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:ijarSC7aLGYIGphM7NI31vrIcq8= Original-Xref: usenet.stanford.edu gnu.emacs.help:192625 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:85032 Archived-At: 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.