Last active
August 29, 2015 14:22
-
-
Save b4284/c55675e7363266705ea0 to your computer and use it in GitHub Desktop.
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
(require 'anthy) | |
(defun toggle-input-method-2 (im-name) | |
(if (string-equal current-input-method im-name) | |
(deactivate-input-method) | |
(activate-input-method im-name))) | |
(defun <f5> () (interactive) (toggle-input-method-2 "chinese-array30-colemak")) | |
(defun <f6> () (interactive) (toggle-input-method-2 "japanese-anthy")) | |
(global-set-key (kbd "<f5>") '<f5>) | |
(global-set-key (kbd "<f6>") '<f6>) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment