mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
refactor(lib): add provide lines
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -12,4 +12,5 @@
|
||||
str)
|
||||
(concat (nreverse quoted))))
|
||||
|
||||
;;; end of strings.el
|
||||
(provide 'doom-lib '(strings))
|
||||
;;; strings.el ends here
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user