   :diminish global-whitespace-mode
   :config   (global-whitespace-mode)
   :custom   (whitespace-style '(face lines-tail))
-  :hook     ((prog-mode .    (lambda () (setq show-trailing-whitespace 1)))
-              (c-mode .      (lambda () (setq whitespace-line-column 80)))
-              (c++-mode .    (lambda () (setq whitespace-line-column 80)))
-              (elixir-mode . (lambda () (setq whitespace-line-column 80)))
-              (java-mode .   (lambda () (setq whitespace-line-column 100)))
-              (python-mode . (lambda () (setq whitespace-line-column 79)))
-              (rust-mode .   (lambda () (setq whitespace-line-column 99)))))
+  :hook     ((prog-mode .        (lambda () (setq show-trailing-whitespace 1)))
+              (c-mode .          (lambda () (setq whitespace-line-column 80)))
+              (c++-mode .        (lambda () (setq whitespace-line-column 80)))
+              (elixir-mode .     (lambda () (setq whitespace-line-column 80)))
+              (emacs-lisp-mode . (lambda () (setq whitespace-line-column 80)))
+              (java-mode .       (lambda () (setq whitespace-line-column 100)))
+              (python-mode .     (lambda () (setq whitespace-line-column 79)))
+              (rust-mode .       (lambda () (setq whitespace-line-column 99)))))
 
 (use-package windmove
   :config (windmove-default-keybindings)

;;; ui stuff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; theme
(load-theme 'indoors t)
;; don't show startup screen in gui mode
(setq inhibit-startup-screen t)
;; show column numbers, but no row numbers
(column-number-mode 1)
(line-number-mode 0)
;; make "yes/no" questions respond to "y/n"
(defalias 'yes-or-no-p 'y-or-n-p)
;; hide tool bar
(if (functionp 'tool-bar-mode) (tool-bar-mode 0))
;; hide menu bar
(menu-bar-mode 0)
;; create a new frame for every emacsclient, and clean them up on disconnect
;; https://www.emacswiki.org/emacs/EmacsClient#toc14
(add-hook 'server-switch-hook

;; if a region is selected when delete is pressed, it gets deleted
(delete-selection-mode)

;;; other stuff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; don't litter my hd with temp files
(setq backup-directory-alist `((".*" . "~/.emacs.d/tmp"))
  auto-save-file-name-transforms `((".*" , "~/.emacs.d/tmp" t)))

;;; init.el ends here
