[Emacs] Add custom packages path

This commit is contained in:
Lucien Cartier-Tilet 2020-11-27 16:46:46 +01:00
parent 9dabe4c67b
commit 1d5bf5a275
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -52,12 +52,13 @@ If the following variable is non-nil, Spacemacs will ask for confirmation before
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: Spacemacs_layers_and_packages-Package_management-0add1a62 :CUSTOM_ID: Spacemacs_layers_and_packages-Package_management-0add1a62
:END: :END:
It is possible to indicate to Spacemacs a list of additional paths where to look for configuration layers. Paths must have a trailing slash, i.e. =~/.mycontribs/=. As you can see, I added none: It is possible to indicate to Spacemacs a list of additional paths where to look for configuration layers. Paths must have a trailing slash, i.e. =~/.mycontribs/=. As you can see, I added only one:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layer-path '()) (setq-default dotspacemacs-configuration-layer-path
'("~/fromGIT/emacs-packages"))
#+END_SRC #+END_SRC
However, I do have additional packages I installed either from the Elpa or the Melpa. These are set in ~dotspacemacs-additional-packages~, a list of additional packages that will be installed without being wrapped in a layer. If you need some configuration for these packages, then consider creating a layer. You can also puth the configuration in ~dotspacemacs/user-config~. To use a local version of a package, use the ~:location~ property, for instance: However, I do have additional packages I installed either from the Elpa or the Melpa. These are set in ~dotspacemacs-additional-packages~, a list of additional packages that will be installed without being wrapped in a layer. If I need some configuration for these packages, then I should consider creating a layer. I can also puth the configuration in ~dotspacemacs/user-config~. To use a local version of a package, use the ~:location~ property, for instance:
#+BEGIN_SRC emacs-lisp :tangle no #+BEGIN_SRC emacs-lisp :tangle no
'(your-package :location "~/path/to/your-package/") '(your-package :location "~/path/to/your-package/")
#+END_SRC #+END_SRC