mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-05-30 23:22:15 -07:00
fix(japanese): support more migemo-dictionary locations
Homebrew installs migemo in a different location on Apple Silicon vs Intel Macs (vs Linux), so try our best to locate it, if the user hasn't set `migemo-dictionary` already. Fix: #8718
This commit is contained in:
parent
0876796e7a
commit
e71ca792fc
1 changed files with 10 additions and 2 deletions
|
|
@ -8,8 +8,16 @@
|
||||||
migemo-user-dictionary nil
|
migemo-user-dictionary nil
|
||||||
migemo-regex-dictionary nil
|
migemo-regex-dictionary nil
|
||||||
migemo-coding-system 'utf-8-unix
|
migemo-coding-system 'utf-8-unix
|
||||||
migemo-directory (file-name-concat doom-profile-data-dir "migemo/")
|
migemo-directory (file-name-concat doom-profile-data-dir "migemo/"))
|
||||||
migemo-dictionary "/usr/local/share/migemo/utf-8/migemo-dict")
|
|
||||||
|
(when-let*
|
||||||
|
((dict (or (bound-and-true-p migemo-dictionary)
|
||||||
|
(cl-find-if #'file-directory-p
|
||||||
|
'("/opt/homebrew/share/migemo/utf-8/migemo-dict"
|
||||||
|
"/usr/local/share/migemo/utf-8/migemo-dict"
|
||||||
|
"/usr/share/migemo/utf-8/migemo-dict")))))
|
||||||
|
(setq migemo-dictionary dict))
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(when (executable-find migemo-command)
|
(when (executable-find migemo-command)
|
||||||
(migemo-init)
|
(migemo-init)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue