documentation formatting: Sat Mar 20 21:07:12 UTC 2021
This commit is contained in:
parent
5fac9a26c6
commit
bfb3cdad8a
|
@ -437,8 +437,8 @@ Example:
|
|||
#+END_SRC
|
||||
|
||||
**** Overriding a layer package
|
||||
See [[https://www.spacemacs.org/doc/FAQ.html#how-to-override-a-layer-package][this answer in the FAQ's]].
|
||||
|
||||
See [[https://www.spacemacs.org/doc/FAQ.html#how-to-override-a-layer-package][this answer in the FAQ's]].
|
||||
|
||||
*** Without a layer
|
||||
Sometimes a layer can be an unnecessary overhead, this is the case if you just
|
||||
want to install a package with very few configuration associated to it. A good
|
||||
|
|
40
doc/FAQ.org
40
doc/FAQ.org
|
@ -289,26 +289,28 @@ to the list and it will be installed when you reload your configuration with
|
|||
~SPC f e R~, or at the next Spacemacs launch.
|
||||
|
||||
** How to override a layer package?
|
||||
To replace a package that is installed and configured by a layer, without
|
||||
losing the layer's configuration for that package, add the package to your
|
||||
=dotspacemacs-additional-packages= with the =:location= keyword set to the
|
||||
value =local=:
|
||||
#+begin_src emacs-lisp :tangle yes
|
||||
(package-name :location local)
|
||||
#+end_src
|
||||
The package should reside at =<layer>/local/<package>/= (this could be a
|
||||
symbolic link to the real package (repo) directory). The package will still
|
||||
get configured (but not loaded) by the layer. To load the package, require it
|
||||
from your =dotspacemacs/user-config=: =(require 'package-name)=. In this way
|
||||
you can easily switch between the custom version and the version configured by
|
||||
the layer by commenting in/out the line in =dotspacemacs-additional-packages=
|
||||
(to restore deferred loading also comment out the =require= form in
|
||||
=dotspacemacs/user-config=).
|
||||
To replace a package that is installed and configured by a layer, without
|
||||
losing the layer's configuration for that package, add the package to your
|
||||
=dotspacemacs-additional-packages= with the =:location= keyword set to the
|
||||
value =local=:
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(package-name :location local)
|
||||
#+END_SRC
|
||||
|
||||
The package should reside at =<layer>/local/<package>/= (this could be a
|
||||
symbolic link to the real package (repo) directory). The package will still
|
||||
get configured (but not loaded) by the layer. To load the package, require it
|
||||
from your =dotspacemacs/user-config=: =(require 'package-name)=. In this way
|
||||
you can easily switch between the custom version and the version configured by
|
||||
the layer by commenting in/out the line in =dotspacemacs-additional-packages=
|
||||
(to restore deferred loading also comment out the =require= form in
|
||||
=dotspacemacs/user-config=).
|
||||
|
||||
You could also fully replace (i.e. overwrite) the layer version of the package
|
||||
by using a Quelpa recipe with the pseudo-fetcher =local= as described [[https://develop.spacemacs.org/doc/LAYERS.html#packagesel][here]] and
|
||||
[[https://github.com/quelpa/quelpa#file][here]].
|
||||
|
||||
You could also fully replace (i.e. overwrite) the layer version of the package
|
||||
by using a Quelpa recipe with the pseudo-fetcher =local= as described [[https://develop.spacemacs.org/doc/LAYERS.html#packagesel][here]] and
|
||||
[[https://github.com/quelpa/quelpa#file][here]].
|
||||
|
||||
** Disable a package completely?
|
||||
To completely disable a package and effectively uninstalling it even if it is
|
||||
part of your used layers, look for the variable =dotspacemacs-excluded-packages=
|
||||
|
|
Loading…
Reference in New Issue