Commit graph

11 commits

Author SHA1 Message Date
Eivind Fonn c960bfefd5 Use flyspell-mode-off to turn off flyspell
Otherwise the hook is run.
2015-11-02 11:05:24 +01:00
Eivind Fonn 09cb12cf30 More spell checking modifications
- Choose between flyspell-prog-mode or flyspell-mode on SPC t S
- Move flyspell-buffer to flyspell-mode-hook
2015-11-02 10:44:16 +01:00
Fabien Dubosson 456dcb3086 Correct few defaults of spell-checking's layer
- 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.
2015-11-02 00:29:15 -05:00
Fabien Dubosson c043a78ba3 Remove spell-checking-auto-dictionary variable
Remove `spell-checking-auto-dictionary` as the same effect can be
obtained with `dotspacemacs-excluded-packages`.
2015-10-31 14:25:02 +01:00
Fabien Dubosson b644f8abd7 Move auto-dictionary to spell-checking and activate it
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).
2015-10-31 14:24:54 +01:00
Sebastian Wiesner 10282c157b Remove redundant flyspell-mode hook
Markdown Mode derives from Text Mode, and thus runs text-mode-hook anyway.  Hence, there's no use in adding Flyspell Mode to Markdown Mode Hook.
2015-10-18 23:53:57 -04:00
Sebastian Wiesner 4af3eabc45 Actually enable flyspell-prog-mode
Add flycheck-prog-mode to prog-mode-hook to actually turn it on in
programming modes.
2015-10-18 23:53:31 -04:00
Eivind Fonn 56ecd43753 Add variables to opt-in to flycheck/flyspell 2015-10-10 23:18:46 -04:00
Robert O'Connor f710f3e501 add org-mode flyspell hook 2015-10-07 15:51:39 -04:00
Eivind Fonn 88fb27af72 Don't wrap simple functions in lambdas 2015-09-27 20:54:49 -04:00
syl20bnr 6b33031dc5 core: dotspacemacs-distribution, spacemacs-core layer and rename contrib
- 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/packages.el (Browse further)