Created
February 24, 2016 20:30
-
-
Save mskorzhinskiy/a3b038fe9ef6862dc0e2 to your computer and use it in GitHub Desktop.
Snippet for setting language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun set-russian-language () | |
(interactive) | |
(set-input-method "russian-computer") | |
(ispell-change-dictionary "ru")) | |
(defun set-english-language () | |
(interactive) | |
;; todo remove this ugly hack someday | |
(set-input-method "russian-computer") | |
(toggle-input-method) | |
(ispell-change-dictionary "en")) | |
(defun set-deutsch-language () | |
(interactive) | |
(set-input-method "german") | |
(ispell-change-dictionary "de")) | |
(spacemacs/set-leader-keys | |
"or" 'set-russian-language | |
"oe" 'set-english-language | |
"od" 'set-deutsch-language) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment