Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions early-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@

(setq package-enable-at-startup nil)

;; Emacs 31 added a startup warning for any plain .el source file that lacks
;; a `lexical-binding' cookie. It fires for several bundled packages' (often
;; auto-generated) autoloads files -- e.g. sly-macrostep, org-pomodoro,
;; elm-mode, purescript-mode.
;; Suppress just this specific warning type so a stock Emacs 31 startup stays
;; quiet, without hiding other `files'-category warnings/errors.
(require 'warnings)
(add-to-list 'warning-suppress-log-types '(files missing-lexbind-cookie))

;; So we can detect this having been loaded
(provide 'early-init)

Expand Down