From e242d3500ab7e7e2fd46096638a1eee943ee57a4 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 23 Feb 2018 09:31:48 +0100 Subject: [PATCH] Emacs: more documentation --- emacs/emacs.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs/emacs.el b/emacs/emacs.el index 05719aa..58b2e8c 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -35,9 +35,14 @@ ;; The code in this block should be package independend. ;; Keep emacs Custom-settings in separate file +;; set the file path (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) + +;; create the file if not existent (when (not (file-exists-p custom-file)) (with-temp-buffer (write-file custom-file))) + +;; finally load it (load custom-file) ;; set name and password