Skip to content

Instantly share code, notes, and snippets.

@takaxp
Created September 25, 2016 06:16
Show Gist options
  • Save takaxp/b4238068686e83557a7ab2cc4a9c68cf to your computer and use it in GitHub Desktop.
Save takaxp/b4238068686e83557a7ab2cc4a9c68cf to your computer and use it in GitHub Desktop.
Toggle Google IME by Shift-Space for Emacs Mac Port
(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