Browse Source

Proper toggle of flyspell-mode with checking first

Josh Bicking 8 years ago
parent
commit
a82dee3918
1 changed files with 1 additions and 1 deletions
  1. 1 1
      emacs

+ 1 - 1
emacs

@@ -252,7 +252,7 @@
  "u" 'undo-tree-visualize
  "m" 'recentf-open-files
  "l" 'auto-fill-mode
- "s" 'flyspell-mode
+ "s" '(lambda () (interactive) (if flyspell-mode (funcall-interactively 'flyspell-mode '0) (flyspell-mode) (flyspell-buffer)))
  "a" 'auto-complete-mode
  "g" 'magit-status
  "M-g" 'magit-dispatch-popup