File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,12 @@ This path then needs to be loaded within your emacs config:
50
50
Alternatively, this snippet discovers all theme directories in ` ~/.emacs.d/themes/ ` :
51
51
52
52
``` elisp
53
- (let ((basedir "~/.emacs.d/themes/"))
54
- (dolist (f (directory-files basedir))
55
- (if (and (not (or (equal f ".") (equal f "..")))
56
- (file-directory-p (concat basedir f)))
57
- (add-to-list 'custom-theme-load-path (concat basedir f)))))
53
+ (let ((basedir (locate-user-emacs-file "themes/")))
54
+ (when (file-directory-p basedir)
55
+ (dolist (f (directory-files basedir))
56
+ (if (and (not (or (equal f ".") (equal f "..")))
57
+ (file-directory-p (concat basedir f)))
58
+ (add-to-list 'custom-theme-load-path (concat basedir f))))))
58
59
```
59
60
60
61
To load the theme, call ` load-theme ` interactively:
You can’t perform that action at this time.
0 commit comments