Skip to content

Commit

Permalink
fix: read catppuccin-definitions.el in temp buffer instead of visiting
Browse files Browse the repository at this point in the history
  • Loading branch information
reyaboj authored and jtbx committed Aug 13, 2024
1 parent 9a1e90e commit 177ecee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions catppuccin-theme.el
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,9 @@ The colors used will correspond to those in COLORS."

(when load-file-name
;; load the flavor definitions
(with-current-buffer (find-file-noselect
(concat (file-name-directory load-file-name)
"catppuccin-definitions.el"))
(goto-char (point-min))
(with-temp-buffer
(insert-file-contents (expand-file-name "catppuccin-definitions.el"
(file-name-directory load-file-name)))
(setq catppuccin-flavor-alist (read (current-buffer))))

;; define flavors
Expand Down

0 comments on commit 177ecee

Please sign in to comment.