Compare commits

...

3 commits

Author SHA1 Message Date
a4ee1d8885 init: Remove wanderlust config 2025-03-10 17:48:02 +01:00
e6a1229e83 init: Improve logging
When generating the log messages when loading config files generate
more realistic file names.
2025-03-10 17:46:33 +01:00
7df5b0e507 Move config files to XDG-compatible path
Move config files to XDG-compatible path: `$HOME/.config/emacs`.
2025-03-10 17:45:24 +01:00
19 changed files with 6 additions and 7 deletions

View file

@ -1,5 +1,5 @@
;; configure backups
(setq backup-directory-alist '(("." . "~/.emacs.d/backups/")
(setq backup-directory-alist '(("." . "~/.config/emacs/backups/")
("/dev/shm" . "/dev/null"))
backup-by-copying t
delete-old-versions t

View file

@ -40,7 +40,7 @@
(require 'use-package)
;; file used for storing customization information
(setq custom-file "~/.emacs.d/custom.el")
(setq custom-file "~/.config/emacs/custom.el")
(load custom-file)
;; set auth-sources
@ -61,7 +61,7 @@ symbols, which are converted to strings, and suffixed with \".el\"."
:group 'config-snippets
:type '(repeat (choice symbol string)))
(defcustom config-snippet-path '("~/.emacs.d/config/")
(defcustom config-snippet-path '("~/.config/emacs/config/")
"Specifies the path in which config snippets are searched"
:group 'config-snippets
:type '(repeat directory))
@ -83,12 +83,11 @@ symbols, which are converted to strings, and suffixed with \".el\"."
ripgrep
rust
tramp
wl
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)
(message "snippet: %s" snippet)
(message "snippet: %s.el" snippet)
(dolist (dir config-snippet-path)
(message "dir: %s" dir)
(let ((file-name (expand-file-name (concat dir (if (symbolp snippet)
@ -97,4 +96,4 @@ symbols, which are converted to strings, and suffixed with \".el\"."
(message "loading file")
(if (file-readable-p file-name)
(load-file file-name)
(message "Config snippet not found: %s" snippet)))))
(message "Config snippet not found: %s.el" snippet)))))