Skip to content

Commit

Permalink
Fixing byte compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosemer committed May 16, 2024
1 parent 7d2de1d commit 744a884
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions init-dir.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

0 comments on commit 744a884

Please sign in to comment.