 ;; Twitter.
 (use-package twittering-mode :ensure t)
 
-(use-package rainbow-delimiters :ensure t)
+(use-package rainbow-delimiters :ensure t
+  :hook (prog-mode . rainbow-delimiters-mode))
 
 (use-package hungry-delete :ensure t
   :config (global-hungry-delete-mode))

  ;; #slow
  ;; (turn-on-fci-mode)
  ;; (ar/company-fci-workaround)
  (yas-minor-mode +1))

(defun ar/markdown-mode-hook-function ()
  "Called when entering `markdown-mode'."


;; make ELisp regular expressions more readable.
(use-package easy-escape :ensure t
  :hook (emacs-lisp-mode . easy-escape-minor-mode)
  ;; TODO: Figure out why face foreground isn't displayed.
  (set-face-attribute 'easy-escape-face nil :foreground "red")
  (validate-setq easy-escape-character ?⑊))

;; Logs commands in a separate buffer. Handy for screenscasts.
(use-package command-log-mode :ensure t)
