Add config/private; for ~/.doom.d & ~/.config/doom support #406
A modules/ submodule will be symlinked to ~/.emacs.d/modules/private.
This commit is contained in:
parent
6d7db48dc1
commit
b3dcba54eb
7 changed files with 133 additions and 36 deletions
15
modules/config/private/packages.el
Normal file
15
modules/config/private/packages.el
Normal file
|
@ -0,0 +1,15 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; config/private/packages.el
|
||||
|
||||
(when (file-directory-p +private-modules-path)
|
||||
;; automatically symlinks your private modules to `doom-modules-dir'.
|
||||
(let ((symlink (expand-file-name +private-module-prefix doom-modules-dir)))
|
||||
(if (and (file-directory-p symlink)
|
||||
(not (file-symlink-p symlink)))
|
||||
(lwarn "config/private" :warning
|
||||
"modules/%s already exists; can't create symlink" +private-module-prefix)
|
||||
(make-symbolic-link +private-modules-path symlink t))))
|
||||
|
||||
;;
|
||||
(load (expand-file-name "packages.el" +private-config-path)
|
||||
'noerror 'nomessage)
|
Loading…
Add table
Add a link
Reference in a new issue