summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el21
1 files changed, 0 insertions, 21 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 4ee1906..9e864c8 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -279,27 +279,6 @@
:custom
(flyspell-abbrev-p t))
-;; A nicer package for spellchecking
-(use-package jinx
- :disabled t
- :hook (text-mode . jinx-mode)
- :commands (jinx-correct jinx-correct-all)
- :config
- (put 'jinx-overlay 'mouse-face '(jinx-misspelled highlight)) ;; Use standard mouse face for jinx overlays
- (add-to-list 'jinx-exclude-regexps '(t "\\cc")) ;; Don't check chinese characters
- )
-
-;; Automatically creates an abbrev for words i correct, so i don't make the same mistake twice
-(defun jinx--add-to-abbrev (overlay word)
- "Add abbreviation to `global-abbrev-table'.
-The misspelled word is taken from OVERLAY. WORD is the corrected word."
- (let ((abbrev (buffer-substring-no-properties
- (overlay-start overlay)
- (overlay-end overlay))))
- (message "Abbrev: %s -> %s" abbrev word)
- (define-abbrev global-abbrev-table abbrev word)))
-(advice-add 'jinx--correct-replace :before #'jinx--add-to-abbrev)
-
;; Unfill commands
(defun unfill-paragraph ()
"Takes a multi-line paragraph and makes it into a single line of text."