From 912cc4b5225c1850367df2d9a238b773f6f64410 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 21 May 2019 03:41:43 -0400 Subject: [PATCH] input/japanese: lazy-load pangu-spacing Also fixes typo in :general use --- modules/input/japanese/config.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/modules/input/japanese/config.el b/modules/input/japanese/config.el index 8ac4f4096..30f77f0dc 100644 --- a/modules/input/japanese/config.el +++ b/modules/input/japanese/config.el @@ -15,17 +15,15 @@ (use-package pangu-spacing + :hook (text-mode . pangu-spacing-mode) :init ;; replacing `chinese-two-byte' by `japanese' (setq pangu-spacing-chinese-before-english-regexp "\\(?1:\\cj\\)\\(?2:[0-9A-Za-z]\\)" pangu-spacing-chinese-after-english-regexp - "\\(?1:[0-9A-Za-z]\\)\\(?2:\\cj\\)") - - ;; Always insert `real' space in text-mode including org-mode. - (setq pangu-spacing-real-insert-separtor t) - ;; (global-pangu-spacing-mode 1) - (add-hook 'text-mode-hook #'pangu-spacing-mode)) + "\\(?1:[0-9A-Za-z]\\)\\(?2:\\cj\\)" + ;; Always insert `real' space in text-mode including org-mode. + pangu-spacing-real-insert-separtor t)) (def-package! avy-migemo @@ -34,7 +32,7 @@ (def-package! ddskk - :general ("C-x j" skk-mode)) + :general ("C-x j" #'skk-mode)) ;;