Skip to content

Conversation

@heikkil
Copy link

@heikkil heikkil commented Oct 31, 2013

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.

@heikkil
Copy link
Author

heikkil commented Nov 3, 2013

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

@Heliosmaster
Copy link

👍 it is enough to add an empty custom.el, but emacs will complain if you follow the instruction as-is @joodie :)

- :defer t
- :after org
- indentation fixes
Was preventing autofill of category by tab
upgrade from function
several small changes trying to get rid of error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants