Skip to content

Instantly share code, notes, and snippets.

@rzl24ozi
Last active December 11, 2017 07:02
Show Gist options
  • Save rzl24ozi/4808fbd8fb3122933d7f to your computer and use it in GitHub Desktop.
Save rzl24ozi/4808fbd8fb3122933d7f to your computer and use it in GitHub Desktop.
disable w32-ime by using ImmDisableIME()
--- ./src/w32fns.c.orig 2017-04-15 00:02:47.000000000 +0900
+++ ./src/w32fns.c 2017-09-13 21:00:22.787460000 +0900
@@ -9944,6 +9944,9 @@
{
HMODULE imm32_lib = GetModuleHandle ("imm32.dll");
+ BOOL (WINAPI * disable_ime_fn) (DWORD) = (BOOL (WINAPI *) (DWORD))
+ GetProcAddress (imm32_lib, "ImmDisableIME");
+ if (disable_ime_fn) disable_ime_fn (-1);
get_composition_string_fn = (ImmGetCompositionString_Proc)
GetProcAddress (imm32_lib, "ImmGetCompositionStringW");
get_ime_context_fn = (ImmGetContext_Proc)
@myokota4tune
Copy link

emacs-25.3-ImmDisableIME.diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment