Emacs: keep custom settings in a seperated file

This commit is contained in:
Marcel Kapfer 2017-11-25 23:21:57 +01:00
parent 23b3fcc07d
commit cb9ba242ab

View file

@ -31,6 +31,12 @@
;; ;;
;; The code in this block should be package independend. ;; The code in this block should be package independend.
;; Keep emacs Custom-settings in separate file
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(when (not (file-exists-p custom-file))
(with-temp-buffer (write-file custom-file)))
(load custom-file)
;; set name and password ;; set name and password
(setq user-full-name "Marcel Kapfer") (setq user-full-name "Marcel Kapfer")
(setq user-mail-address "me@mmk2410.org") (setq user-mail-address "me@mmk2410.org")