Move custom variables to their own file

This commit is contained in:
Wojciech Kozlowski 2017-08-24 22:14:10 +01:00
parent 001d7dd71e
commit 1a1399a905
2 changed files with 13 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
auto-save-list
bookmarks
elpa
elpa
custom.el

11
init.el
View File

@ -13,6 +13,11 @@
(let ((gc-cons-threshold most-positive-fixnum))
;; --------------------------------------------------------------------------
;; Change file in which custom variable changes are saved.
;; --------------------------------------------------------------------------
(setq custom-file "~/.emacs.d/custom.el")
;; --------------------------------------------------------------------------
;; Visual configuration.
;; --------------------------------------------------------------------------
@ -147,4 +152,10 @@
(setq-default max-specpdl-size 20000) ;; ~15x original value
(setq-default max-lisp-eval-depth 24000) ;; 30x orignal value
;; --------------------------------------------------------------------------
;; Load any custom variables.
;; --------------------------------------------------------------------------
(when (file-exists-p custom-file)
(load custom-file))
) ;; Reset garbage collection settings.