help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs22: set the input method to latin-1-prefix


From: Joost Kremers
Subject: Re: Emacs22: set the input method to latin-1-prefix
Date: 2 Oct 2007 08:41:21 GMT
User-agent: slrn/0.9.8.1 (Linux)

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                                      address@hidden
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]