input/japanese: lazy-load pangu-spacing
Also fixes typo in :general use
This commit is contained in:
parent
3eb5e8d40e
commit
912cc4b522
1 changed files with 5 additions and 7 deletions
|
@ -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))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue