;; straight.el to manage package
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
M-x eval-buffer RET之后报错了:
Error (use-package): Failed to parse package doom-themes: use-package: Unrecognized keyword: :straight
Error (use-package): Failed to parse package doom-modeline: use-package: Unrecognized keyword: :straight
Error (use-package): Failed to parse package nyan-mode: use-package: Unrecognized keyword: :straight
Error (use-package): Failed to parse package emojify: use-package: Unrecognized keyword: :straight
Error (use-package): Failed to parse package dashboard: use-package: Unrecognized keyword: :straight
Error (use-package): Failed to parse package all-the-icons: use-package: Unrecognized keyword: :straight
Error (use-package): Failed to parse package centaur-tabs: use-package: Unrecognized keyword: :straight