I am new to emacs(spacemacs), and I follow this article to learn spacemacs.
Once you are done editing, save the file and either press C-c C-c in the file to reload it or just restart Spacemacs.
But after I save the .spacemacs
and then press C-c C-c
, the powerline told me C-c C-c is undefined
.
How can I reload .spacemacs
file after editing without restart emacs?
You can use the command load-file ( M-x load-file , then press return twice to accept the default filename, which is the current file being edited). You can also just move the point to the end of any sexp and press C-x C-e to execute just that sexp.
There is no way to restart an Emacs session once you have killed it. You can, however, arrange for Emacs to record certain session information, such as which files are visited, when you kill it, so that the next time you restart Emacs it will try to visit the same files and so on.
I found the solution: SPC f e R
It is from "Dotfile Configuration" in the Spacemacs Docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With