Emacs: Keep custom-file in temp folder (with server socket)

master
Pierre Neidhardt 2017-06-18 15:21:08 +01:00
parent 9d5408a22f
commit cf713a0f6c
1 changed files with 2 additions and 2 deletions

View File

@ -261,8 +261,8 @@ e-mail."
;;; Finalization
;;; Don't let `customize' clutter my config.
;;; This will prompt "File exists, but cannot be read".
(setq custom-file "/dev/null")
(setq custom-file (expand-file-name "custom.el" server-socket-dir))
(load custom-file t)
;;; We need to put it at the end to make sure it doesn't get overriden by other
;;; minor modes.