Merge branch 'master' of github.com:IvanMalison/dotfiles

This commit is contained in:
Ivan Malison 2016-06-22 15:27:10 -07:00
commit d61a6cf1b1
2 changed files with 17 additions and 0 deletions

View File

@ -15,6 +15,20 @@ This makes it so that the file that is produced from tangling this file uses lex
(replace-regexp-in-string "\n$" "" (shell-command-to-string
"git config --get user.email")))
#+END_SRC
** auto-compile
This is here because it needs to be activated as early as possible
#+BEGIN_SRC emacs-lisp
(use-package auto-compile
:config
(progn
(auto-compile-on-load-mode)
(auto-compile-on-save-mode)))
#+END_SRC
** Prefer Newer Versions
To reduce the risk of loading outdated byte code files, we set load-prefer-newer and enable auto-compile-on-load-mode as early as possible.
#+BEGIN_SRC emacs-lisp
(setq load-prefer-newer t)
#+END_SRC
** Custom Files
It's annoying to have emacs randomly add stuff to your init.el whenever you customize a variable. By setting a custom file other than init.el that is ignored in git, random commits with nothing but variable settings are avoided.

View File

@ -1,6 +1,9 @@
;; -*- no-byte-compile: t -*-
(require 'package)
(package-initialize)
(setq load-prefer-newer t)
(setq custom-file "~/.emacs.d/custom-before.el")
(when (file-exists-p custom-file) (load custom-file))