unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joost Kremers <joostkremers@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs22: set the input method to latin-1-prefix
Date: 2 Oct 2007 08:41:21 GMT	[thread overview]
Message-ID: <slrnfg40vv.540.joostkremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: 1191310629.786652.112310@57g2000hsv.googlegroups.com

Ulrich Scholz wrote:
> But I would be grateful if someone could point me to a small,
> practical example how to set the default input method by a function
> and add this function to a major mode hook. Or - even better - give me
> a small code snippet.

to create a function to set the input method:

(defun my-set-default-input-method ()
  (set-input-method 'latin-1-prefix))

then to add it to a hook:

(add-hook 'text-mode-hook 'my-set-default-input-method)

read the section on hooks in the emacs manual for some more details.

HTH

-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)

  reply	other threads:[~2007-10-02  8:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-01 13:51 Emacs22: set the input method to latin-1-prefix Ulrich Scholz
2007-10-01 16:08 ` Eli Zaretskii
2007-10-01 18:47 ` Reiner Steib
2007-10-01 19:23 ` Joost Kremers
2007-10-02  7:37   ` Ulrich Scholz
2007-10-02  8:41     ` Joost Kremers [this message]
2007-10-02 11:42       ` Ulrich Scholz
2007-10-10 16:16     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnfg40vv.540.joostkremers@j.kremers4.news.arnhem.chello.nl \
    --to=joostkremers@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).