  '(markdown-bold-underscore nil)
  '(org-hide-block-startup t)
  '(org-startup-folded nil)
- '(safe-local-variable-values (quote ((TeX-master . "../poster") (TeX-master . "./main_poster") (TeX-master . "../main_poster") (TeX-master . t) (TeX-master . "main") (TeX-master . "./main"))))
+ '(safe-local-variable-values
+   (quote
+    ((TeX-master . "../poster")
+     (TeX-master . "./main_poster")
+     (TeX-master . "../main_poster")
+     (TeX-master . t)
+     (TeX-master . "main")
+     (TeX-master . "./main"))))
  '(show-paren-mode t)
  '(tool-bar-mode nil)
  '(yas-wrap-around-region t))

 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(cc-other-file-alist (quote (("\\.cc\\'" (".hh" ".h")) ("\\.hh\\'" (".cc" ".C")) ("\\.c\\'" (".h")) ("\\.h\\'" (".cc" ".c" ".C" ".CC" ".cxx" ".cpp")) ("\\.C\\'" (".H" ".hh" ".h")) ("\\.H\\'" (".C" ".CC")) ("\\.CC\\'" (".HH" ".H" ".hh" ".h")) ("\\.HH\\'" (".CC")) ("\\.c\\+\\+\\'" (".h++" ".hh" ".h")) ("\\.h\\+\\+\\'" (".c++")) ("\\.cpp\\'" (".hpp" ".hh" ".h")) ("\\.hpp\\'" (".cpp")) ("\\.cxx\\'" (".hxx" ".hh" ".h")) ("\\.hxx\\'" (".cxx")))))
 '(column-number-mode t)
 '(ff-ignore-include t)
 '(gud-gdb-command-name "gdb -i=mi --args")

(define-key 'help-command (kbd "F") 'find-function)
(define-key 'help-command (kbd "K") 'find-function-on-key)
(define-key 'help-command (kbd "V") 'find-variable)


;; Clean up whitespace
;; ============================================================

;; has to go near the end because we need some project/language specific
;; functions.

(defun preserve-trailing-whitespace-p ()
  (interactive)
  (or
   ;; makefile mode doesn't play well with this
   (string= major-mode "makefile-mode")

   ;; oomph-lib doesn't stick to no trailing whitespace :(
   (is-oomph-code)

   ;; Don't do it in non-programming modes (just to be safe)
   (not (derived-mode-p 'prog-mode))))


(defun maybe-delete-trailing-whitespace ()
  (when (not (preserve-trailing-whitespace-p))
    (delete-trailing-whitespace)))

(add-hook 'before-save-hook 'maybe-delete-trailing-whitespace)


;; Automagically added by customise
