aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2016-12-07 12:31:13 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2016-12-07 12:31:13 +0100
commit73fba12d5139c9f64263f92a3d7ef2196667e495 (patch)
tree604f2bb9d7314a47ccf91ed996808ba3738b194e /emacs
parenta0bdcbbb367db7fb52bd752fce04b422cea27291 (diff)
downloaddotfiles-73fba12d5139c9f64263f92a3d7ef2196667e495.tar.gz
dotfiles-73fba12d5139c9f64263f92a3d7ef2196667e495.zip
emacs: set the custom-file somewhere else
This way GNU Emacs will no longer pollute my init.el file. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs')
-rw-r--r--emacs/settings/init-general.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/settings/init-general.el b/emacs/settings/init-general.el
index 33d8d67..069259c 100644
--- a/emacs/settings/init-general.el
+++ b/emacs/settings/init-general.el
@@ -126,6 +126,12 @@
; to *really* evaluate everything from scratch.
(global-set-key (kbd "C-c k") 'kill-emacs)
+; Save custom-variables somewhere else.
+
+(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
+(if (file-exists-p custom-file)
+ (load custom-file))
+
;; Default theme
(load-theme 'soria t)