- Packages are initialized once, when package.el is first loaded, and must be updated manually via doom/reload-packages. - Package->module association is now stored in the package's PLIST under :modules. This is an internal property and cannot be explicitly set through `package!' - Add doom-package-list function - Rename doom-get-packages to doom-find-packages - Updated doom-find-packages' docstring - Added the :core filter to doom-find-packages - Simplified doom-initialize-packages - doom/reload calls doom/reload-packages if necessary. - Fix redundant properties in doom-packages - Remove tracking of after!, def-package! and def-package-hook! blocks. Replaced with doom-package-list being able to see all packages, even in disabled modules. - Add :built-in property to package! for dummy packages. This is important so that doom/describe-package can see built-in packages.
38 lines
1.2 KiB
EmacsLisp
38 lines
1.2 KiB
EmacsLisp
;;; core/autoload/config.el -*- lexical-binding: t; -*-
|
|
|
|
;;;###autoload
|
|
(defun doom/open-private-config ()
|
|
"TODO"
|
|
(interactive)
|
|
(unless (file-directory-p doom-private-dir)
|
|
(make-directory doom-private-dir t))
|
|
(doom-project-browse doom-private-dir))
|
|
|
|
;;;###autoload
|
|
(defun doom/find-file-in-private-config ()
|
|
"TODO"
|
|
(interactive)
|
|
(doom-project-find-file doom-private-dir))
|
|
|
|
;;;###autoload
|
|
(defun doom/reload (&optional force-p)
|
|
"Reloads your config. This is experimental!
|
|
|
|
If called from a noninteractive session, this will try to communicate with a
|
|
live server (if one is found) to tell it to run this function.
|
|
|
|
If called from an interactive session, tries to reload autoloads files (if
|
|
necessary), reinistalize doom (via `doom-initialize') and reloads your private
|
|
init.el and config.el. Then runs `doom-reload-hook'."
|
|
(interactive "P")
|
|
(require 'core-cli)
|
|
(doom-reload-autoloads force-p)
|
|
(setq load-path doom-site-load-path)
|
|
(let (doom-init-p)
|
|
(doom-initialize))
|
|
(with-demoted-errors "PRIVATE CONFIG ERROR: %s"
|
|
(doom-initialize-modules 'force))
|
|
(when (bound-and-true-p doom-packages)
|
|
(doom/reload-packages))
|
|
(run-hook-wrapped 'doom-reload-hook #'doom-try-run-hook)
|
|
(message "Finished!"))
|