 ;; Use frames instead of emacs "windows"
 ;; ============================================================
  ;; Make new frames instead of new windows
-(setq pop-up-frames 'graphic-only)
+(set 'pop-up-frames 'graphic-only)
 
  ;; Disable automatic display of completions buffer because it's a giant pain to
  ;; deal with nicely
-(setq completion-auto-help nil)
+(set 'completion-auto-help nil)
 
 ;; Focus follows mouse off to prevent crazy things happening when I click on
 ;; e.g. compilation error links.
-(setq mouse-autoselect-window nil)
-(setq focus-follows-mouse nil)
+(set 'mouse-autoselect-window nil)
+(set 'focus-follows-mouse nil)
 
 ;; To automatically open a "useful" buffer in new frames xmonads binding for a
 ;; new frame is set to "emacsclient -c -n -e '(switch-to-buffer nil)'".

;; ===============================================================

;; Save into a helpfully named file
(setq savehist-file "~/.emacs.d/savehist")

;; Save other things as well
(setq savehist-additional-variables '(kill-ring
                                      search-ring
                                      regexp-search-ring
                                      compile-command))

(setq-default fill-column 75) ;; not 80 because when things are later indented
                              ;; by e.g. diff, git log we lose some columns and
                              ;; it gets messy.
(set 'default-abbrev-mode t) ;; Use abbrev mode always
(set 'tags-revert-without-query 1) ;; Autorevert if the tags table has changed

;; Add a new line at end of file on save if none exists (note: doesn't play
;; nice with scheme).
(setq-default require-final-newline 0)

;; Autosave all modified buffers before compile
(set 'compilation-ask-about-save nil)

;; Had to remove this because oomph-lib doesn't stick to no trailing whitespace...,
;; Remove trailing whitespace before save
