init: Improve logging
When generating the log messages when loading config files generate more realistic file names.
This commit is contained in:
parent
7df5b0e507
commit
e6a1229e83
1 changed files with 3 additions and 3 deletions
|
@ -86,9 +86,9 @@ symbols, which are converted to strings, and suffixed with \".el\"."
|
||||||
wl
|
wl
|
||||||
yaml))
|
yaml))
|
||||||
|
|
||||||
(message "Loading\nconfig-snippets: %s\nconfig-snippets-path: %s" config-snippets config-snippet-path)
|
(message "Loading\nconfig-snippets: %s\nconfig-snippets-path: %s.el" config-snippets config-snippet-path)
|
||||||
(dolist (snippet config-snippets)
|
(dolist (snippet config-snippets)
|
||||||
(message "snippet: %s" snippet)
|
(message "snippet: %s.el" snippet)
|
||||||
(dolist (dir config-snippet-path)
|
(dolist (dir config-snippet-path)
|
||||||
(message "dir: %s" dir)
|
(message "dir: %s" dir)
|
||||||
(let ((file-name (expand-file-name (concat dir (if (symbolp snippet)
|
(let ((file-name (expand-file-name (concat dir (if (symbolp snippet)
|
||||||
|
@ -97,4 +97,4 @@ symbols, which are converted to strings, and suffixed with \".el\"."
|
||||||
(message "loading file")
|
(message "loading file")
|
||||||
(if (file-readable-p file-name)
|
(if (file-readable-p file-name)
|
||||||
(load-file file-name)
|
(load-file file-name)
|
||||||
(message "Config snippet not found: %s" snippet)))))
|
(message "Config snippet not found: %s.el" snippet)))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue