From 744a884ba29e3c5e1e1934b121c812ee0135b267 Mon Sep 17 00:00:00 2001 From: Jared Finder Date: Thu, 16 May 2024 09:36:07 -0700 Subject: [PATCH] Fixing byte compiler warnings. --- init-dir.el | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/init-dir.el b/init-dir.el index adf135f..cd198e9 100644 --- a/init-dir.el +++ b/init-dir.el @@ -45,9 +45,21 @@ ;;; Code: +(require 'package) + ;; Needed to byte compile cleanly. (eval-when-compile (require 'benchmark-init-modes)) +;;; Customize variables: + +(defcustom init-dir-enable-package-checks t + "Set to non-nil if `init-dir-load' should also perform package checks." + :type 'boolean + :tag "Enable package checks" + :group 'initialization + :link '(url-link https://github.com/chaosemer/init-dir) + :package-version '(init-dir . "0.1")) + (defun init-dir--file-init-loadable-p (file) "Test if FILE should be loaded at Emacs initialization. @@ -294,16 +306,6 @@ PACKAGES: List of package symbols to upgrade when the button is clicked." "Upgrade all packages") "")) -;;; Customize variables: - -(defcustom init-dir-enable-package-checks t - "Set to non-nil if `init-dir-load' should also perform package checks." - :type 'boolean - :tag "Enable package checks" - :group 'initialization - :link '(url-link https://github.com/chaosemer/init-dir) - :package-version '(init-dir . "0.1")) - (provide 'init-dir) ;;; init-dir.el ends here