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

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

Re: Default input method


From: Rupert Swarbrick
Subject: Re: Default input method
Date: Wed, 03 Sep 2008 13:08:28 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Maurí­cio <briqueabraque@yahoo.com> writes:

> Hi,
>
> I usually do
>
> M-x set-input-method ucs
>
> at every buffer I edit. Is
> it possible to set it once
> for all buffers in .emacs?
>
> Thanks,
> Maurício

How about:

(add-hook 'find-file-hook
          (lambda ()
            (set-input-method "ucs")))

Although, this only works with found files: I'm not sure whether there's
a "new buffer" hook. So, for example, this doesn't work on new mail in
gnus.

That said, C-\ will toggle the "current input method", which I often
use, since the randomly underlined "U"s that keep appearing annoy me
after a while.

Rupert

Attachment: pgp68z27ljZ_X.pgp
Description: PGP signature


reply via email to

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