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

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

Re: .emacs poser


From: Emanuel Berg
Subject: Re: .emacs poser
Date: Wed, 18 Dec 2013 22:42:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Jambunathan K <kjambunathan@gmail.com> writes:

>> Every new buffer starts out without an input method,
>> so you need to do `C-\` first.
>
> If you do a
>
>    M-x set-language-environment
>
> either interactively or in your .emacs, then you can
> switch between input methods with just C-\.

How is that any different from what he said? He said
you have to do a C-\, and you say you can do it with:
C-\.

> You don't have to "select" an input method.

How is that not selecting?

If I do (to sync with the definition I provided
earlier, I don't know if there is an official Swedish
setup):

(set-language-environment "Swedish")

I still have to do C-\. However, this is possible to
not have to do with hooks. (And I highly recommend not
doing it every time.)

(add-hook 'text-mode-hook
          (lambda ()
            (set-input-method 'swedish-quail)
            ;; ...
            ))

But, there seems to be more than meets the eye. In this
buffer, in message-mode, it works, and I didn't setup
that hook...

-- 
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united:  http://user.it.uu.se/~embe8573


reply via email to

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