Skip to content

Commit

Permalink
Add Documentation about how to avoid conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrieanKhisbe committed Dec 2, 2015
1 parent c85dcb6 commit 2094771
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
12 changes: 12 additions & 0 deletions doc/FAQ.org
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ repository instead of the one shipped with emacs. Then, any `org` related code
should not be loaded before `dotspacemacs/user-config`, otherwise both versions
will be loaded and will conflict.

Because of autoloading, calling to `org` function will trigger the loading up
of the `org` shipped with emacs wich will induce conflicts.
One way to do your `org` config is to wrap you config code in a
`with-eval-after-load` block.

#+BEGIN_SRC emacs-lisp
(with-eval-after-load 'org
;; here goes your Org config :)
;; ....
)
#+END_SRC

** Why is Spacemacs hanging on startup?
This is probably related to Helm using Tramp which tries to figure out some
SSH/DNS settings at startup. The root cause is probably your ISP redirecting
Expand Down
16 changes: 13 additions & 3 deletions layers/org/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,23 @@ This layer enables [[http://orgmode.org/][org mode]] for Spacemacs.
- presentation mode via [[https://github.com/rlister/org-present][org-present]]
-
** Note
Since version 0.104, spacemacs uses the `org` version from the org ELPA
repository instead of the one shipped with emacs. Then, any `org` related code
should not be loaded before `dotspacemacs/user-config`, otherwise both versions
Since version 0.104, spacemacs uses the =org= version from the org ELPA
repository instead of the one shipped with emacs. Then, any =org= related code
should not be loaded before =dotspacemacs/user-config=, otherwise both versions
will be loaded and will conflict.
Org layer checks if this has occurred and signals an error if org features have
been instantiated prior to org layer loading.

One way to do your =org= config is to wrap you config code in a
=with-eval-after-load= block.

#+BEGIN_SRC emacs-lisp
(with-eval-after-load 'org
;; here goes your Org config :)
;; ....
)
#+END_SRC

* Install
** Layer
To use this contribution add it to your =~/.spacemacs=
Expand Down

0 comments on commit 2094771

Please sign in to comment.