Commit graph

26 commits

Author SHA1 Message Date
syl20bnr 046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
justbur b0ee301845 layers: Conditionally load helm packages
Only use them when the spacemacs-helm layer is used.
2016-01-09 13:36:03 -05:00
syl20bnr cddf18ff1e Update install layer section in REAMDE.org files 2016-01-06 00:21:55 -05:00
Eivind Fonn 11daa77866 Fix #4215 2015-12-17 20:38:21 +01:00
Eivind Fonn ac0ba50154 Make flycheck/flyspell hooks more explicit 2015-12-11 02:08:55 -05:00
Eivind Fonn c893383fe4 Fix some documentation bugs
- CSS links
- GIFS in published version
- Unify layer doc titles
- Change emoji layer emojis to an image
2015-12-03 23:50:29 -05:00
Eivind Fonn 0e919507ee Insert missing HTML_HEAD_EXTRAs 2015-11-23 14:09:16 +01:00
justbur 9befd20a1a layers: Transition to new key bindings functions
Removes dependence on evil-leader centralizing control over the method
of key binding in core-keybindings.el
2015-11-21 18:22:51 +01:00
Eivind Fonn b7fff9e903 Actually disable flyspell buffer in flyspell hook
Missing from 02fb2bd3f4 after rebase
2015-11-03 08:59:34 +01:00
Fabien Dubosson 02fb2bd3f4 Disable automatic call to flyspell-buffer
Some users complained about slowness when opening files due to
spell-checking being activated. This commit revert to old behaviour
checking only the words under the cursor and not the whole buffer.
2015-11-03 00:00:54 -05:00
syl20bnr eafec1989a spell-checking: replace lambda by named function 2015-11-03 00:00:54 -05:00
Fabien Dubosson 302ae039da Move the dictionary selection code into adict hook
When `auto-dictionary-mode` is activated, it tries to guess the
dictionary no matter if a dictionary was manually selected before, what
is annoying when toggling spell-checking off/on. To avoid this, a piece
of code was added to the spell-checking toggle to select the
buffer-local dictionary if it was set.

As mentioned by lunaryorn, this part of code should also be called when
flyspell is enabled/disabled by an other mean than the spacemacs toggle.
This commit move the code to the `auto-dictionary-mode-hook` for this
purpose.
2015-11-03 00:00:53 -05:00
Fabien Dubosson ac14e3f551 Document auto-dictionary limitations 2015-11-02 23:57:58 -05:00
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
Eivind Fonn 13c5b1d24b Convert documentation to publishable format 2015-11-01 23:40:29 -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
syl20bnr 383b1bec20 Update dotspacemacs/config and dotspacemacs/init occurrences 2015-09-28 02:05:18 -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