init.el文件报错

;; 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

emacs -Q -l ~/.config/emacs/test.el 没问题,请尝试重启 Emacs 或者自行二分配置

;;; emacs -Q -l ~/.config/emacs/test.el

;; 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)

(use-package org :straight t)

不要把 :straight 包在 use-package form 里面了。装包和配置包可以分开进行的。

就直接

(straight-use-package 'doom-themes)

(use-package doom-themes
  xxx
)

就好了。

为什么我在“cloning org”时卡了很久

开个“增强模式”的代理

这两天确实,开了增强模式了,但还是慢,不知道是否是梯子的问题