 ;; Stop asking me if a theme is safe. The entirety of Emacs is built around
-;; evaling arbituary code...
+;; evaling arbitrary code...
 (advice-add 'load-theme :around #'(lambda (old-load-theme &rest r)
                                     (apply old-load-theme (append r '(t)))))
 

(add-hook 'after-revert-hook 'linum-update-current)

;; lisp keybindings
(define-key emacs-lisp-mode-map (kbd "C-c e e") 'eval-last-sexp)
(define-key emacs-lisp-mode-map (kbd "C-c e r") 'eval-region)
(define-key emacs-lisp-mode-map (kbd "C-c e b") 'eval-buffer)

;; Automatically wrap overly long lines for all text modes
(add-hook 'text-mode-hook #'(lambda () (auto-fill-mode t)))

;; Turn on linum mode for all prog and text modes
(dolist (hook (list 'prog-mode-hook 'text-mode-hook))
  (add-hook hook #'(lambda () (linum-mode t))))
