我真就只是删了 elpa
重启、让 use-package 重新安装所有包(我开了 always-ensure),然后就没问题了,唯一一个配置改动应该是调整了 use-package 的 hook 还没影响 Org-Mode
调整 Use-Package hook
; 之前的写法
(use-package vertico
:hook after-init
(vertico-mode . vertico-multiform-mode))
; 之后的写法
(use-package vertico
:hook
(after-init . vertico-mode)
(vertico-mode . vertico-multiform-mode))
我的 Org-Mode 简陋配置
(use-package org
:config
(require 'org-tempo)
:custom
(org-use-sub-superscripts "{}")
(org-directory "~/configBackup/org")
(org-agenda-files '("Inbox.org"))
;; TOC CSS from Worg
(org-html-doctype "html5")
(org-html-html5-fancy t)
(org-html-head-extra "<style>/* TOC inspired by http://jashkenas.github.com/coffee-script */ #table-of-contents { z-index: 1; margin-top: 105px; font-size: 10pt; font-family:sans-serif; position: fixed; right: 0em; top: 0em; background: white; line-height: 12pt; text-align: right; box-shadow: 0 0 1em #777777; -webkit-box-shadow: 0 0 1em #777777; -moz-box-shadow: 0 0 1em #777777; -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; /* ensure doesn't flow off the screen when expanded */ max-height: 80%; overflow: auto; } /* Hide when screen is too narrow */ @media only screen and (max-width: 67em) { #table-of-contents { display: none; } } #table-of-contents h2 { font-size: 13pt; max-width: 9em; border: 0; font-weight: normal; margin-top: 0.75em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.05em; padding-bottom: 0.05em; } #table-of-contents #text-table-of-contents { display: none; text-align: left; } #table-of-contents:hover #text-table-of-contents { display: block; padding: 0.5em; margin-top: -1.5em; }</style>"))