Преглед на файлове

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