Преглед изворни кода

Proper toggle of flyspell-mode with checking first

Josh Bicking пре 8 година
родитељ
комит
a82dee3918
1 измењених фајлова са 1 додато и 1 уклоњено
  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