Emacs: Refactor custom-file settings

master
Pierre Neidhardt 2017-07-27 13:56:19 +01:00
parent e221a83d77
commit 4511f9d8ca
1 changed files with 4 additions and 3 deletions

View File

@ -323,9 +323,10 @@
;;; Finalization
;;; Don't let `customize' clutter my config.
(if (boundp 'server-socket-dir)
(setq custom-file (expand-file-name "custom.el" server-socket-dir))
(setq custom-file (expand-file-name (format "custom-%s.el" (user-uid)) temporary-file-directory)))
(setq custom-file
(if (boundp 'server-socket-dir)
(expand-file-name "custom.el" server-socket-dir)
(expand-file-name (format "emacs-custom-%s.el" (user-uid)) temporary-file-directory)))
(load custom-file t)
;;; Local config. You can use it to set system specific variables, such as the