Merge branch 'master' of github.com:IvanMalison/dotfiles
This commit is contained in:
commit
d61a6cf1b1
@ -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.
|
||||
|
||||
|
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user