Move spellcheck config into platform configs
Linux requires less configuration and worked mostly out of the box
This commit is contained in:
21
config.el
21
config.el
@@ -102,27 +102,6 @@
|
|||||||
(setq org-refile-targets
|
(setq org-refile-targets
|
||||||
'((nil :maxlevel . 3) (org-agenda-files :maxlevel . 1))))
|
'((nil :maxlevel . 3) (org-agenda-files :maxlevel . 1))))
|
||||||
|
|
||||||
;; 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"))
|
|
||||||
|
|
||||||
(use-package!
|
(use-package!
|
||||||
elisp-autofmt
|
elisp-autofmt
|
||||||
:commands (elisp-autofmt-mode elisp-autofmt-buffer)
|
:commands (elisp-autofmt-mode elisp-autofmt-buffer)
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
;;; $DOOMDIR/lisp/gnu-linux.el --- GNU/Linux specific configuration -*- lexical-binding: t; -*-
|
;;; $DOOMDIR/lisp/gnu-linux.el --- GNU/Linux specific configuration -*- lexical-binding: t; -*-
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;; Code:
|
;;; 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
|
;; For elisp-autofmt
|
||||||
;; Local variables:
|
;; Local variables:
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
;;; $DOOMDIR/lisp/windows-nt.el --- Windows specific configuration -*- lexical-binding: t; -*-
|
;;; $DOOMDIR/lisp/windows-nt.el --- Windows specific configuration -*- lexical-binding: t; -*-
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
(require 'doom)
|
||||||
|
|
||||||
;; Windows path
|
;; Windows path
|
||||||
(when (eq system-type 'windows-nt)
|
(when (eq system-type 'windows-nt)
|
||||||
|
|
||||||
@@ -20,6 +22,28 @@
|
|||||||
(append exec-path (split-string (getenv "PATH") path-separator t)))))
|
(append exec-path (split-string (getenv "PATH") path-separator t)))))
|
||||||
(setenv "PATH" (mapconcat 'identity (delete-dups path) path-separator))))
|
(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
|
;; For elisp-autofmt
|
||||||
;; Local variables:
|
;; Local variables:
|
||||||
;; elisp-autofmt-load-packages-local: ("use-package" "use-package-core")
|
;; elisp-autofmt-load-packages-local: ("use-package" "use-package-core")
|
||||||
|
|||||||
Reference in New Issue
Block a user