From b121a5f18f090356c6f05dd1db8e3b207a70641b Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Thu, 19 Mar 2020 19:03:48 +0100 Subject: [PATCH] Keep a custom file --- init.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.org b/init.org index e9a7d70..ba9d4eb 100644 --- a/init.org +++ b/init.org @@ -133,6 +133,8 @@ (let ((private-file (concat user-emacs-directory "private.el"))) (when (file-exists-p private-file) (load-file private-file)) + (when custom-file + (load-file custom-file)) (server-start)))) #+END_SRC @@ -259,7 +261,6 @@ #+BEGIN_SRC emacs-lisp (setq auto-revert-interval 1 ; Refresh buffers fast - custom-file (make-temp-file "") ; Discard customization's default-input-method "TeX" ; Use TeX when toggling input method echo-keystrokes 0.1 ; Show keystrokes asap inhibit-startup-screen t ; No splash screen please @@ -267,7 +268,9 @@ recentf-max-saved-items 100 ; Show more recent files ring-bell-function 'ignore ; Quiet scroll-margin 1 ; Space between cursor and top/bottom - sentence-end-double-space nil) ; No double space + sentence-end-double-space nil ; No double space + custom-file ; Customizations in a separate file + (concat user-emacs-directory "custom.el")) ;; Some mac-bindings interfere with Emacs bindings. (when (boundp 'mac-pass-command-to-system) (setq mac-pass-command-to-system nil))