Config: add jinx spell check, org-download, and keybinding updates

This commit is contained in:
User
2026-03-29 21:23:44 +08:00
parent 6131329bdd
commit e7a0e1b382
6 changed files with 86 additions and 11 deletions

View File

@@ -119,15 +119,26 @@
(unless (eq ibuffer-sorting-mode 'alphabetic)
(ibuffer-do-sort-by-alphabetic)))))
;; avy中文支持
(use-package ace-pinyin
:init (ace-pinyin-global-mode +1))
;; 安装ox-hugo
(use-package ox-hugo
:custom
(empv-mpv-args '("--force-window=immediate"
"--keep-open=yes"
"--fs=no")))
;; jinx拼写检查
(use-package jinx
:hook (org-mode-hook . jinx-mode)
:bind ([remap ispell-word] . jinx-correct)
:config (setq jinx-languages "en_US")
(add-to-list 'jinx-exclude-regexps '(t "\\cc"))
(with-eval-after-load 'jinx
(dolist (range '((#x4E00 . #x9FFF)
(#x3400 . #x4DBF)
(#x3000 . #x303F)
(#xFF00 . #xFFEF)
(#x20000 . #x2A6DF)))
(let ((start (car range))
(end (cdr range)))
(dotimes (i (- end start))
(modify-syntax-entry (+ start i) "_" jinx--syntax-table))))))
;; 安装emms
(use-package emms