From ad29be39f6fd5778ba7e8651dd3a1b1f5d3a66ae Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 2 Oct 2024 05:15:58 -0400 Subject: [PATCH] refactor(lib): add provide lines --- lisp/lib/buffers.el | 3 +++ lisp/lib/config.el | 3 +++ lisp/lib/docs.el | 1 + lisp/lib/fonts.el | 3 +++ lisp/lib/help.el | 3 +++ lisp/lib/packages.el | 3 +++ lisp/lib/projects.el | 3 +++ lisp/lib/sandbox.el | 3 +++ lisp/lib/scratch.el | 3 +++ lisp/lib/sessions.el | 3 +++ lisp/lib/store.el | 3 +++ lisp/lib/strings.el | 3 ++- lisp/lib/text.el | 3 +++ lisp/lib/themes.el | 3 +++ lisp/lib/ui.el | 3 +++ 15 files changed, 42 insertions(+), 1 deletion(-) diff --git a/lisp/lib/buffers.el b/lisp/lib/buffers.el index bbc360110..e8f571d20 100644 --- a/lisp/lib/buffers.el +++ b/lisp/lib/buffers.el @@ -398,3 +398,6 @@ current project." interactive "Killed %d project buffers" (- (length buffer-list) (length (cl-remove-if-not #'buffer-live-p buffer-list))))))) + +(provide 'doom-lib '(buffers)) +;;; buffers.el ends here diff --git a/lisp/lib/config.el b/lisp/lib/config.el index 51a46bf0a..486da1f8d 100644 --- a/lisp/lib/config.el +++ b/lisp/lib/config.el @@ -165,3 +165,6 @@ imported into Emacs." (doom--if-compile doom-upgrade-command (when (y-or-n-p "You must restart Emacs for the upgrade to take effect.\n\nRestart Emacs?") (doom/restart-and-restore)))) + +(provide 'doom-lib '(config)) +;;; config.el ends here diff --git a/lisp/lib/docs.el b/lisp/lib/docs.el index 1f7d90d28..534dee366 100644 --- a/lisp/lib/docs.el +++ b/lisp/lib/docs.el @@ -559,4 +559,5 @@ Keeps track of its own IDs in `doom-docs-dir' and toggles `doom-docs-mode' when (add-hook 'doom-docs-org-mode-hook #'doom-docs-read-only-h) +(provide 'doom-lib '(docs)) ;;; docs.el ends here diff --git a/lisp/lib/fonts.el b/lisp/lib/fonts.el index 139e153d4..9397ccaf1 100644 --- a/lisp/lib/fonts.el +++ b/lisp/lib/fonts.el @@ -180,3 +180,6 @@ Also resizees `doom-variable-pitch-font' and `doom-serif-font'." (doom-adjust-font-size nil) (when doom-big-font-mode (doom-adjust-font-size doom-big-font-increment)))) + +(provide 'doom-lib '(fonts)) +;;; fonts.el ends here diff --git a/lisp/lib/help.el b/lisp/lib/help.el index f94504fd7..7764cacc7 100644 --- a/lisp/lib/help.el +++ b/lisp/lib/help.el @@ -755,3 +755,6 @@ Uses the symbol at point or the current selection, if available." (format "%s.el" filebase))) collect it) query "Search loaded files: ")) + +(provide 'doom-lib '(help)) +;;; help.el ends here diff --git a/lisp/lib/packages.el b/lisp/lib/packages.el index eb974b51e..c9b9dd9ad 100644 --- a/lisp/lib/packages.el +++ b/lisp/lib/packages.el @@ -317,3 +317,6 @@ Must be run from a magit diff buffer." (user-error "%S isn't installed through any known source (%s)" package archive))))) ((user-error "Can't get homepage for %S package" package)))))) + +(provide 'doom-lib '(packages)) +;;; packages.el ends here diff --git a/lisp/lib/projects.el b/lisp/lib/projects.el index b320f8a14..7596f067d 100644 --- a/lisp/lib/projects.el +++ b/lisp/lib/projects.el @@ -187,3 +187,6 @@ If DIR is not a project, it will be indexed (but not cached)." (unless (file-remote-p project-root) (or (file-in-directory-p project-root temporary-file-directory) (file-in-directory-p project-root doom-local-dir)))) + +(provide 'doom-lib '(projects)) +;;; projects.el ends here diff --git a/lisp/lib/sandbox.el b/lisp/lib/sandbox.el index 901405e77..f13516946 100644 --- a/lisp/lib/sandbox.el +++ b/lisp/lib/sandbox.el @@ -159,3 +159,6 @@ to reproduce bugs and determine if Doom is to blame." (insert (substitute-command-keys doom-sandbox-preamble))) (goto-char (point-max)) (current-buffer)))) + +(provide 'doom-lib '(sandbox)) +;;; sandbox.el ends here diff --git a/lisp/lib/scratch.el b/lisp/lib/scratch.el index 0c1e7d639..c8a301304 100644 --- a/lisp/lib/scratch.el +++ b/lisp/lib/scratch.el @@ -197,3 +197,6 @@ If prefix ARG, delete all persistent scratches." (message "%S does not exist" (abbreviate-file-name file)) (delete-file file) (message "Successfully deleted %S" (abbreviate-file-name file)))))) + +(provide 'doom-lib '(scratch)) +;;; scratch.el ends here diff --git a/lisp/lib/sessions.el b/lisp/lib/sessions.el index 571749f93..82623c745 100644 --- a/lisp/lib/sessions.el +++ b/lisp/lib/sessions.el @@ -155,3 +155,6 @@ switch." (when (boundp 'chemacs-current-emacs-profile) (list "--with-profile" chemacs-current-emacs-profile)) (list "-l" tmpfile))))) + +(provide 'doom-lib '(sessions)) +;;; sessions.el ends here diff --git a/lisp/lib/store.el b/lisp/lib/store.el index 3dd15ad3a..b0a198914 100644 --- a/lisp/lib/store.el +++ b/lisp/lib/store.el @@ -153,3 +153,6 @@ LOCATION defaults to `doom-store-location'." (when (file-exists-p path) (delete-file path) t))) + +(provide 'doom-lib '(store)) +;;; store.el ends here diff --git a/lisp/lib/strings.el b/lisp/lib/strings.el index f06ebc52f..4c2d4ab60 100644 --- a/lisp/lib/strings.el +++ b/lisp/lib/strings.el @@ -12,4 +12,5 @@ str) (concat (nreverse quoted)))) -;;; end of strings.el +(provide 'doom-lib '(strings)) +;;; strings.el ends here diff --git a/lisp/lib/text.el b/lisp/lib/text.el index 0bd7a3e7a..bac52294d 100644 --- a/lisp/lib/text.el +++ b/lisp/lib/text.el @@ -413,3 +413,6 @@ i.e. disables `ws-butler-mode' in the current buffer." (defun doom-disable-show-trailing-whitespace-h () "Disable `show-trailing-whitespace' in the current buffer." (setq-local show-trailing-whitespace nil)) + +(provide 'doom-lib '(text)) +;;; text.el ends here diff --git a/lisp/lib/themes.el b/lisp/lib/themes.el index 8d681162b..2f503f160 100644 --- a/lisp/lib/themes.el +++ b/lisp/lib/themes.el @@ -115,3 +115,6 @@ non-interactive or frame-less sessions." (doom-theme-face-attribute theme face attribute inherit)) (setq value (face-attribute-merged-with attribute value inherit)))) value)) + +(provide 'doom-lib '(themes)) +;;; themes.el ends here diff --git a/lisp/lib/ui.el b/lisp/lib/ui.el index f564248e4..a295b3233 100644 --- a/lisp/lib/ui.el +++ b/lisp/lib/ui.el @@ -245,3 +245,6 @@ If the current buffer is not an indirect buffer, it is `widen'ed." (if (buffer-narrowed-p) (widen) (narrow-to-region beg end))) + +(provide 'doom-lib '(ui)) +;;; ui.el ends here