(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)
#+BEGIN_SRC emacs-lisp :tangle don-configuration.el
(use-package magit
:ensure t
+ :bind (("C-x g" . magit-status)
+ ("C-x C-g" . magit-status))
:config
;; don't verify where we are pushing
(setq magit-push-always-verify nil)
#+BEGIN_SRC emacs-lisp
(use-package rainbow-mode
- :ensure f
;; add ess to the x major mode
:config (add-to-list 'rainbow-x-colors-major-mode-list 'ESS[S])
(add-to-list 'rainbow-x-colors-major-mode-list 'ESS[R])
(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)