emacs-literal-config
emacs-literal-config copied to clipboard
emacs need custom.el file to start cleanly
By deleting our custom.el file you cause emacs not to start cleanly. One line instruction have been added to emacs.org so that other users who fork this repo are not affected. Note: The empty custom.el is included in the commit that will overwrite any custom.el you might happen to have.
I've come up with a better way to solve this: let lisp do the work of testing for the file existence and creating it if needed:
#+name: customize-config #+BEGIN_SRC emacs-lisp (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) (unless (file-exists-p custom-file) (write-region "" nil custom-file)) (load custom-file) #+END_SRC
👍 it is enough to add an empty custom.el
, but emacs will complain if you follow the instruction as-is @joodie :)