Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting input method of Emacs on launch

Tags:

emacs

dvorak

I have set my default-input-method variable to "english-dvorak":

(custom-set-variables
    '(default-input-method "english-dvorak"))

When I launch Emacs, this input method is not selected. How can I make it so that all buffers by default open in this input method?

like image 292
hekevintran Avatar asked Mar 06 '10 13:03

hekevintran


People also ask

How do I input in Emacs?

To do this, type C-\ ( toggle-input-method ). To reenable the input method, type C-\ again. If you type C-\ and you have not yet selected an input method, it prompts you to specify one. This has the same effect as using C-x RET C-\ to specify an input method.

How do I change the language on Emacs?

To select a language environment, customize current-language-environment or use the command M-x set-language-environment . It makes no difference which buffer is current when you use this command, because the effects apply globally to the Emacs session.


1 Answers

(defadvice switch-to-buffer (after activate-input-method activate)
  (activate-input-method "english-dvorak"))
like image 156
link0ff Avatar answered Sep 30 '22 19:09

link0ff