Move spellcheck config into platform configs
Linux requires less configuration and worked mostly out of the box
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
;;; $DOOMDIR/lisp/gnu-linux.el --- GNU/Linux specific configuration -*- lexical-binding: t; -*-
|
||||
;;; Commentary:
|
||||
;;; Code:
|
||||
(require 'doom)
|
||||
|
||||
(after!
|
||||
ispell (setq ispell-dictionary "en_US")
|
||||
;; Hunspell won't create it, and ispell needs this file specified to work
|
||||
(setq ispell-personal-dictionary "~/.hunspell_en_US"))
|
||||
|
||||
;; For elisp-autofmt
|
||||
;; Local variables:
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
;;; $DOOMDIR/lisp/windows-nt.el --- Windows specific configuration -*- lexical-binding: t; -*-
|
||||
;;; Commentary:
|
||||
;;; Code:
|
||||
(require 'doom)
|
||||
|
||||
;; Windows path
|
||||
(when (eq system-type 'windows-nt)
|
||||
|
||||
@@ -20,6 +22,28 @@
|
||||
(append exec-path (split-string (getenv "PATH") path-separator t)))))
|
||||
(setenv "PATH" (mapconcat 'identity (delete-dups path) path-separator))))
|
||||
|
||||
|
||||
;; TODO: Find out what _actually_ needs to be set here
|
||||
;; i.e. shouldn't need to set both ispell-dictionary and ispell-local-dictionary
|
||||
(after!
|
||||
ispell
|
||||
(setq ispell-dictionary "en_US")
|
||||
(setq ispell-local-dictionary "en_US")
|
||||
(setq ispell-extra-args '("-d" "en_US"))
|
||||
(setq ispell-local-dictionary-alist
|
||||
'(("en_US" "[A-Za-z]" "[^A-Za-z]" "[']" nil nil nil utf-8)))
|
||||
(setq ispell-hunspell-dictionary-alist
|
||||
'(("en_US"
|
||||
"C:/hunspell/en_US.aff"
|
||||
"C:/hunspell/en_US.dic"
|
||||
nil
|
||||
nil
|
||||
nil
|
||||
"utf-8")))
|
||||
;; This is the default hunspell personal dictionary
|
||||
;; Hunspell won't create it, and ispell needs this file specified to work
|
||||
(setq ispell-personal-dictionary "~/.hunspell_en_US"))
|
||||
|
||||
;; For elisp-autofmt
|
||||
;; Local variables:
|
||||
;; elisp-autofmt-load-packages-local: ("use-package" "use-package-core")
|
||||
|
||||
Reference in New Issue
Block a user