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

split .spacemacs file into components? #7257

Closed
kevinushey opened this issue Oct 3, 2016 · 1 comment
Closed

split .spacemacs file into components? #7257

kevinushey opened this issue Oct 3, 2016 · 1 comment
Labels
- Mailling list - stale marked as a stale issue/pr (usually by a bot)

Comments

@kevinushey
Copy link
Contributor

kevinushey commented Oct 3, 2016

Just some feedback + a suggestion re: updating to the new Spacemacs release...

One bit that was a little bit painful for me was updating my .spacemacs file to ensure that I inherited the new defaults for the latest Spacemacs release. Because I had a bunch of code inline in my .spacemacs file for user configuration, I had to manually copy that out, remove the .spacemacs file, ask Spacemacs to re-generate my .spacemacs file, and then copy that code back in.

I wonder if this process could be made a little bit simpler? My proposal: the default implementations for dotspacemacs/user-config and dotspacemacs/user-init could be tweaked to have a default of e.g.

(defun dotspacemacs/user-init ()
 (if (file-readable-p "~/.emacs.d/user-init.el") (load "~/.emacs.d/user-init.el")))

This way, users could provide their own config in separate files, ~/.emacs.d/user-init.el, and more easily update their .spacemacs file as the distributed copy / defaults change.

Some other candidates for places to look for init files:

  • ~/.emacs.d/user-init.el
  • ~/.emacs.d/spacemacs-user-init.el
  • ~/.spacemacs.user-init

Thanks!

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Mailling list - stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

2 participants