input/japanese: lazy-load pangu-spacing

Also fixes typo in :general use
This commit is contained in:
Henrik Lissner 2019-05-21 03:41:43 -04:00
parent 3eb5e8d40e
commit 912cc4b522
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -15,17 +15,15 @@
(use-package pangu-spacing (use-package pangu-spacing
:hook (text-mode . pangu-spacing-mode)
:init :init
;; replacing `chinese-two-byte' by `japanese' ;; replacing `chinese-two-byte' by `japanese'
(setq pangu-spacing-chinese-before-english-regexp (setq pangu-spacing-chinese-before-english-regexp
"\\(?1:\\cj\\)\\(?2:[0-9A-Za-z]\\)" "\\(?1:\\cj\\)\\(?2:[0-9A-Za-z]\\)"
pangu-spacing-chinese-after-english-regexp pangu-spacing-chinese-after-english-regexp
"\\(?1:[0-9A-Za-z]\\)\\(?2:\\cj\\)") "\\(?1:[0-9A-Za-z]\\)\\(?2:\\cj\\)"
;; Always insert `real' space in text-mode including org-mode.
;; Always insert `real' space in text-mode including org-mode. pangu-spacing-real-insert-separtor t))
(setq pangu-spacing-real-insert-separtor t)
;; (global-pangu-spacing-mode 1)
(add-hook 'text-mode-hook #'pangu-spacing-mode))
(def-package! avy-migemo (def-package! avy-migemo
@ -34,7 +32,7 @@
(def-package! ddskk (def-package! ddskk
:general ("C-x j" skk-mode)) :general ("C-x j" #'skk-mode))
;; ;;