Skip to content

Commit

Permalink
Add bound-and-true to local-config--loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescherti committed Aug 16, 2024
1 parent 98e9906 commit 15f007b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ Return `nil` if the local Emacs RC file has not been loaded."
(defun local-config-status ()
"Check if local Emacs RC have been loaded for the current buffer."
(interactive)
(if (and (bound-and-true-p local-config--dir) local-config--loaded)
(if (and (bound-and-true-p local-config--dir)
(bound-and-true-p local-config--loaded))
(message "[local-config] Loaded: %s" local-config--file)
(message "[local-config] Not loaded")))

Expand Down Expand Up @@ -179,7 +180,6 @@ Only loads settings if the directory is allowed and not denied."
(denied-dir-p (local-config--directory-allowed-p
(list current-dir local-config-file)
local-config-denied-directories)))
(setq-local local-config--loaded nil)
(setq-local local-config--allowed-p (and allowed-dir-p
(not denied-dir-p)))
(setq-local local-config--dir local-config-dir)
Expand Down

0 comments on commit 15f007b

Please sign in to comment.