Explorar o código

Proper toggle of flyspell-mode with checking first

Josh Bicking %!s(int64=8) %!d(string=hai) anos
pai
achega
a82dee3918
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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