Closed jethrokuan closed 3 years ago
I cannot reproduce this on any of my test systems with vanilla Doom, on Emacs 26.3, 27.1 or 28+gccemacs, on NixOS, Ubuntu, Arch, MacOS, or Windows 10.
auto-minor-mode-alist
is autoloaded, so a doom sync
will pull its definition into the autoloads file that Doom loads at startup.
Here are a few possibilities:
auto-minor-mode
package failed to install and the error message was missed. Try deleting ~/.emacs.d/.local/straight/repos/auto-minor-mode
manually then run doom sync
.SPC h e
or C-h e
to open it) for warnings or errors earlier in the log.With doom/sandbox
Doom + modules - your private config:
Debugger entered--Lisp error: (void-variable auto-minor-mode-alist)
(member '("/test[/-].+\\.el$" . buttercup-minor-mode) auto-minor-mode-alist)
(if (member '("/test[/-].+\\.el$" . buttercup-minor-mode) auto-minor-mode-alist) auto-minor-mode-alist (setq auto-minor-mode-alist (cons '("/test[/-].+\\.el$" . buttercup-minor-mode) auto-minor-mode-alist)))
eval-buffer(#<buffer *load*-214936> nil "/home/jethro/.emacs.d/modules/lang/emacs-lisp/conf..." nil t) ; Reading at buffer position 9062
load-with-code-conversion("/home/jethro/.emacs.d/modules/lang/emacs-lisp/conf..." "/home/jethro/.emacs.d/modules/lang/emacs-lisp/conf..." t t)
load("/home/jethro/.emacs.d/modules/lang/emacs-lisp/conf..." t nomessage)
(let (file-name-handler-alist) (load (expand-file-name file (plist-get plist :path)) t 'nomessage))
(condition-case e (let (file-name-handler-alist) (load (expand-file-name file (plist-get plist :path)) t 'nomessage)) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name file (plist-get plist :path)) (plist-get plist :path))))
(let ((doom--current-module module) (doom--current-flags (plist-get plist :flags))) (condition-case e (let (file-name-handler-alist) (load (expand-file-name file (plist-get plist :path)) t 'nomessage)) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name file (plist-get plist :path)) (plist-get plist :path)))))
(closure ((file . "config") t) (module plist) (let ((doom--current-module module) (doom--current-flags (plist-get plist :flags))) (condition-case e (let (file-name-handler-alist) (load (expand-file-name file (plist-get plist :path)) t 'nomessage)) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name file (plist-get plist :path)) (plist-get plist :path))))))((:lang . emacs-lisp) (:flags nil :path "/home/jethro/.emacs.d/modules/lang/emacs-lisp/"))
maphash((closure ((file . "config") t) (module plist) (let ((doom--current-module module) (doom--current-flags (plist-get plist :flags))) (condition-case e (let (file-name-handler-alist) (load (expand-file-name file (plist-get plist :path)) t 'nomessage)) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name file (plist-get plist :path)) (plist-get plist :path)))))) #<hash-table equal 38/65 0x94ee67>)
eval-buffer(#<buffer *load*> nil "/tmp/doom-sandbox-snS9a5" nil t) ; Reading at buffer position 28989
load-with-code-conversion("/tmp/doom-sandbox-snS9a5" "/tmp/doom-sandbox-snS9a5" nil t)
command-line-1(("-l" "/tmp/doom-sandbox-snS9a5"))
command-line()
normal-top-level()
Looks like the package failed to install. Try the other suggestions.
Hmm yeah, I had to nuke the entire .emacs.d
folder and reinstall. Thanks!
I'm getting:
when loading Doom Emacs. I traced this down to the following:
https://github.com/hlissner/doom-emacs/blob/develop/modules/lang/emacs-lisp/config.el#L204
which seems to use
auto-minor-mode-alist
, without ensuring a(require 'auto-minor-mode)
is called. Not sure what optimizations Doom has in place here, but adding(require 'auto-minor-mode)
, in the init block there temporarily resolves this issue.