b644f8abd7
This commit moves the – previously disabled – `auto-dictionary` code to the `spell-checking` layer and activate it. It is now enabled by default, but can be disabled by setting `spell-checking-auto-dictionary` to `nil`. `auto-dictionary` comes with some interesting improvements: - Tries to automatically detect what is the language of the buffer and activate the corresponding dictionary. - When a buffer is opened, all spelling mistakes are shown without needing first to be under the cursor. - When the dictionary is changed, the whole buffer is reanalyzed for spelling mistakes (close #2088).
24 lines
583 B
EmacsLisp
24 lines
583 B
EmacsLisp
;;; config.el --- Spell Checking Layer configuration File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2014 Sylvain Benner
|
|
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
;; Command Prefixes
|
|
|
|
(spacemacs/declare-prefix "S" "spelling")
|
|
|
|
;; Variables
|
|
|
|
(defvar spell-checking-enable-by-default t
|
|
"Enable spell checking by default.")
|
|
|
|
(defvar spell-checking-auto-dictionary t
|
|
"Enable auto-dictionary by default.")
|