[oni-core] Add settings for spell checking
- Inhibit the use of the ’ character in case a ' should be used so that spell checking programs don't get confused. - Explicitly use the ‘hunspell’ program to perform spell checking.
This commit is contained in:
parent
a0bd2014f3
commit
b3965ea473
1 changed files with 15 additions and 1 deletions
16
oni-core.el
16
oni-core.el
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; Keywords: local
|
||||
;; Version: 2021.0921.232841
|
||||
;; Version: 2021.1110.213201
|
||||
;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview dashboard mixed-pitch)
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
@ -293,6 +293,20 @@ _s_: String list"
|
|||
;; I’m used to working with Monday as the starting day.
|
||||
(setq calendar-week-start-day 1))
|
||||
|
||||
(defun oni-core-in-word-p ()
|
||||
"Check whether the character just typed was part of a word."
|
||||
(save-excursion
|
||||
(backward-char)
|
||||
(looking-back (rx word) (1- (point)))))
|
||||
|
||||
(with-eval-after-load 'electric
|
||||
(add-hook 'electric-quote-inhibit-functions #'oni-core-in-word-p))
|
||||
|
||||
(eval-when-compile (require 'ispell))
|
||||
(with-eval-after-load 'ispell
|
||||
(setq ispell-program-name "hunspell"
|
||||
ispell-really-hunspell t))
|
||||
|
||||
;; Enable any modes that I want to have turned on right away.
|
||||
|
||||
(electric-indent-mode -1)
|
||||
|
|
Loading…
Reference in a new issue