From 177ecee1e5b8bbd05053cba5c93ebfae3b8fee8c Mon Sep 17 00:00:00 2001 From: Md Istiaque Al Jobayer <52089815+reyaboj@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:34:01 +0600 Subject: [PATCH] fix: read catppuccin-definitions.el in temp buffer instead of visiting --- catppuccin-theme.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/catppuccin-theme.el b/catppuccin-theme.el index 6bc792a..9dcf0bb 100644 --- a/catppuccin-theme.el +++ b/catppuccin-theme.el @@ -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