Created
September 25, 2016 06:16
-
-
Save takaxp/b4238068686e83557a7ab2cc4a9c68cf to your computer and use it in GitHub Desktop.
Toggle Google IME by Shift-Space for Emacs Mac Port
This file contains hidden or 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 mac-win-ime-toggle () | |
(interactive) | |
(mac-select-input-source | |
(concat "com.google.inputmethod.Japanese" | |
(if (string-match "\\.Roman$" (mac-input-source)) | |
".base" ".Roman")))) | |
(global-set-key (kbd "S-SPC") 'mac-win-ime-toggle) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment