X-Git-Url: https://git.donarmstrong.com/?p=lib.git;a=blobdiff_plain;f=emacs_el%2Fconfiguration%2Fdon-configuration.org;h=58f60f485abafa3803c0dad30c598795e3e66798;hp=85210b9314b79b70a1b28ef59df77c3d24adca80;hb=4b3a1a0e0aa1bcaa94a97f955a5a38a0e0b37165;hpb=fbf11d8be821da841209d5b3b30f708a6b1bb27e diff --git a/emacs_el/configuration/don-configuration.org b/emacs_el/configuration/don-configuration.org index 85210b9..58f60f4 100644 --- a/emacs_el/configuration/don-configuration.org +++ b/emacs_el/configuration/don-configuration.org @@ -71,6 +71,22 @@ (add-hook 'minibuffer-exit-hook #'don/minibuffer-exit-hook) #+END_SRC * Modules +** Flyspell 🐝 +#+BEGIN_SRC emacs-lisp + (use-package flyspell + :ensure t + :diminish flyspell-mode 🐝 + :config + (add-hook 'message-mode-hook 'turn-on-flyspell) + (add-hook 'text-mode-hook 'turn-on-flyspell) + (add-hook 'c-mode-common-hook 'flyspell-prog-mode) + (add-hook 'cperl-mode-hook 'flyspell-prog-mode) + (add-hook 'tcl-mode-hook 'flyspell-prog-mode) + :init + (setq ispell-program-name "ispell") + ) + +#+END_SRC ** Winnermode #+BEGIN_SRC emacs-lisp (winner-mode 1) @@ -796,13 +812,6 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori (put 'downcase-region 'disabled nil) (put 'narrow-to-region 'disabled nil) - (setq ispell-program-name "ispell") - (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t) - (add-hook 'message-mode-hook 'turn-on-flyspell) - (add-hook 'text-mode-hook 'turn-on-flyspell) - (add-hook 'c-mode-common-hook 'flyspell-prog-mode) - (add-hook 'cperl-mode-hook 'flyspell-prog-mode) - (add-hook 'tcl-mode-hook 'flyspell-prog-mode) ; (defun turn-on-flyspell () ; "Force flyspell-mode on using a positive arg. For use in hooks." ; (interactive)