Update mozc stuff

This commit is contained in:
2026-07-21 00:05:23 -07:00
parent 20be5dd80f
commit c7542dc27a
2 changed files with 72 additions and 0 deletions
+12
View File
@@ -627,6 +627,17 @@ directory. Otherwise, run `find-file' on that file."
;; mozc
(require 'mozc nil t)
(setq default-input-method "japanese-mozc")
(with-eval-after-load 'mozc
(require 'mozc-posframe)
(defvar my/-mozc-mode-override-evil-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-k") #'mozc-handle-event)
map)
"Emulation map to override evil keys in `mozc-mode'.")
(add-to-list 'emulation-mode-map-alists
`((mozc-mode . ,my/-mozc-mode-override-evil-map))))
;; mozc status bar stuff
(defun my/-update-waybar-fcitx-state ()
"Update the waybar fcitx5 state."
(call-process "pkill" nil 0 nil "-RTMIN+1" "waybar"))
@@ -700,6 +711,7 @@ With NO-UPDATE-BAR, don't update any status bar's state."
;; (advice-add 'mozc-helper-process-filter :override
;; #'my/-fixed-mozc-helper-process-filter))
;; migemo
(use-package migemo
:defer nil