Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: Move customized settings to custom.el #6090

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion core/core-load-paths.el
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,17 @@
(defconst user-home-directory
(expand-file-name "~/")
"User home directory (~/).")

(defconst pcache-directory
(concat spacemacs-cache-directory "pcache/"))
(unless (file-exists-p spacemacs-cache-directory)
(make-directory spacemacs-cache-directory))
(make-directory spacemacs-cache-directory))

(setq custom-file
(concat spacemacs-cache-directory "custom.el"))
(unless (file-exists-p custom-file)
(with-temp-buffer (write-file custom-file))
(custom-save-all))

(defconst user-dropbox-directory
(expand-file-name (concat user-home-directory "Dropbox/"))
Expand Down
4 changes: 3 additions & 1 deletion core/core-spacemacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ defer call using `spacemacs-post-user-config-hook'."
(funcall dotspacemacs-scratch-mode)))
(configuration-layer/display-summary emacs-start-time)
(spacemacs/check-for-new-version spacemacs-version-check-interval)
(setq spacemacs-initialized t))))
(setq spacemacs-initialized t)
(load-file custom-file)
)))

(defun spacemacs//describe-system-info-string ()
"Gathers info about your Spacemacs setup and returns it as a string."
Expand Down