mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-10 15:33:36 -05:00
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:
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)
|
Reference in New Issue
Block a user