(ff/configure-faces
'((italic :underline nil)
(info-title-2 :foreground "green")
+ (font-lock-comment-delimiter-face :foreground "black")
+ (font-lock-comment-face :foreground "black")
(cperl-array-face :background "gray90" :foreground "blue" :weight 'bold)
(cperl-hash-face :background "gray90" :foreground "purple" :weight 'bold)
(diff-added :background "gray90" :foreground "green4" :weight 'bold)
;; (when (ff/load-or-alert "flyspell-timer" t)
;; (add-hook 'flyspell-mode-hook 'flyspell-timer-ensure-idle-timer))
-(defun ff/start-flyspell () (interactive)
- (ff/configure-faces
- '(
- (flyspell-incorrect :background "#ff0000" :foreground "black")
- (flyspell-duplicate :background "#ff9000" :foreground "black")
- ))
- (flyspell-buffer)
- )
-
-(add-hook 'flyspell-mode-hook 'ff/start-flyspell)
+;; (defun ff/start-flyspell () (interactive)
+ ;; (ff/configure-faces
+ ;; '(
+ ;; ;; (flyspell-incorrect :background "#ff0000" :foreground "black")
+ ;; ;; (flyspell-duplicate :background "#ff9000" :foreground "black")
+ ;; (flyspell-incorrect :foreground "#ff0000" :weight 'bold)
+ ;; (flyspell-duplicate :foreground "#ff9000" :weight 'bold)
+ ;; ))
+ ;; (flyspell-buffer)
+ ;; )
+
+;; (add-hook 'flyspell-mode-hook 'ff/start-flyspell)
(defun ff/pick-dictionnary () (interactive)
(when (and (boundp 'flyspell-mode) flyspell-mode)
(add-hook 'vm-mail-send-hook 'ff/check-no-leading-from)
(add-hook 'vm-mail-send-hook 'ff/check-no-excess-wording)
(add-hook 'vm-mail-send-hook 'flyspell-mode-off)
+
+(defadvice vm-mail-send-and-exit (before ff/switch-flyspell-off nil activate)
+ (flyspell-mode-off))
+
;; Append so that it happens after the mime encoding
;; (add-hook 'vm-mail-send-hook 'ff/check-badly-encoded-address t)