- Disable `auto-dictionary-mode` by default. Add a layer's variable to
enable it. Its behaviour has some impact on user-defined dictionary
preferences, it has some bugs in daemon mode, and not all languages
are supported. It's why it better to have it disabled by default.
- Toggle off `auto-dictionary-mode` when spell-checking is toggled off.
- Call `flyspell-buffer` when toggling **on** spell-checking to reveal
mistakes (probably the wanted behaviour when activating
spell-checking)
- When `auto-dictionary-mode` is enabled, if a buffer's dictionary is
manually changed with `SPC S d`, it is restored after toggling
spell-checking on/off, otherwise `auto-dictionary` will thy to guess
it again.
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).
- Rename contrib directory to layers
- Add new variable dotspacemacs-distribution
- Move spacemacs layer to layers/!distribution
- New layer spacemacs-core in layers/!distribution
- User can now set dotspacemacs-distribution to spacemacs or
spacemacs-core (default spacemacs)
spacemacs-core is very lightweight layer sufficient to build upon
spacemacs.
2015-09-07 23:44:43 -04:00
Renamed from contrib/spell-checking/config.el (Browse further)