You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1495: Add M-x prelude-doctor, which lists what Prelude is missing on your system (programs, tree-sitter grammars, language servers), conflicting modules, and the modules added to Prelude since you made your copy of the modules file.
Add a welcome screen shown on startup (unless Emacs is launched to open specific files). It points you at the essentials (personal config location, how to enable modules, the user manual) and offers quick access to recent files, known projects and bookmarks, plus a rotating tip. Reopen it any time with M-x prelude-welcome, or turn it off with (setq prelude-welcome-screen nil).
#1466: Add prelude-java module: Java support via java-ts-mode and the Eclipse JDT language server, which is installed automatically (by eglot-java or lsp-java, depending on prelude-lsp-client), with key bindings for running tests and main classes.
#1469: Add prelude-csharp module: C# support via the built-in csharp-ts-mode (or csharp-mode) and LSP.
#1469: Add prelude-julia module: Julia support via julia-mode, julia-repl and LSP (LanguageServer.jl gets installed by eglot-jl or lsp-julia).
#1469: Add prelude-kotlin module: Kotlin support via kotlin-mode and LSP.
#1469: Add prelude-nix module: Nix support via nix-mode and LSP.
#1469: Add prelude-php module: PHP support via php-mode and LSP.
#1469: Add prelude-r module: R support via ESS and LSP.
#1469: Add prelude-sql module: syntax-aware indentation (sql-indent) for the built-in sql-mode, unwrapped result sets in SQL consoles, and LSP when sqls is installed.
#1469: Add prelude-terraform module: Terraform support via terraform-mode and LSP.
#1469: Add prelude-zig module: Zig support via zig-mode and LSP.
Add prelude-swift module: Swift support via the tree-sitter powered swift-ts-mode and sourcekit-lsp (registered with Eglot, since Eglot has no built-in entry for Swift). Starts an LSP session through the usual prelude-lsp-enable abstraction.
Add prelude-mistty module: a terminal based on MisTTY, a pure-elisp shell/comint hybrid on top of term.el (no native module to compile). Rebinds Prelude's terminal key C-c t to mistty.
Add a prelude-spell-checker option to choose between flyspell (the default) and jinx, a faster libenchant-based spell checker that only checks the visible part of the buffer. Jinx is installed on demand and enabled as a single global mode; set (setq prelude-spell-checker 'jinx) in your personal config to opt in (requires libenchant and a C compiler).
Add a prelude-whitespace-cleanup-style option to choose how whitespace is cleaned on save: whitespace-cleanup (the default, tidies the whole file) or ws-butler, which trims only the lines you actually edited so saving a file in someone else's project no longer produces noisy whitespace-only diffs. ws-butler is installed on demand.
Add prelude-ai module: a thin wrapper around gptel for LLM-backed chat (Claude, GPT, Gemini, Ollama, etc.). Binds gptel-menu to C-c q. Backends and API keys are configured in personal config (see the module documentation for examples).
Add prelude-forge module: enables Forge on top of Magit so you can read and reply to GitHub/GitLab/Gitea pull requests and issues without leaving Emacs.
Add prelude-eglot-booster module: speeds up Eglot via the emacs-lsp-booster wrapper. The Emacs side (eglot-booster) is auto-installed via package-vc-install when the booster binary is on PATH; otherwise the module no-ops.
Add prelude-corfu module: a modern, lightweight in-buffer completion stack (corfu + cape), an alternative to prelude-company. Pairs naturally with the vertico/orderless setup in prelude-vertico.
Add prelude-apheleia module: enables Apheleia globally for async, flicker-free format-on-save (Prettier, Black, Ruff, gofmt, rustfmt, ...). Supersedes the per-language format hooks in modules like prelude-rust and prelude-go.
#1460: Load personal/early-init.el from Prelude's early-init.el, so you can keep your own early startup settings without editing Prelude's files.
Warn at startup when modules that do the same job are enabled together (e.g. prelude-vertico and prelude-ivy, or prelude-company and prelude-corfu).
#1461: Add prelude-smartparens user option, allowing smartparens support to be disabled.
Offer to install a missing tree-sitter grammar the first time a file in that language is opened, and fall back to the classic major mode if it isn't installed. This works the same way on Emacs 29 through 31 and for tree-sitter modes from packages. Control it with prelude-treesit-auto-install (ask, always or nil), and install the grammars of all enabled modules with M-x prelude-treesit-install-grammars. Prelude's own grammar recipes are pinned to releases close to the ones Emacs 31 picked, and on Emacs 31 Emacs's recipes are used instead.
Changes
#1502: Put named functions instead of lambdas on the hooks that Prelude's core uses (e.g. the one that lowers the GC threshold after startup), so you can take them off with remove-hook.
#1500: Set up lsp-mode and lsp-ui with use-package too, and load the lsp-mode module in the load test when lsp-mode is the LSP client.
#1500: Set up Evil and key-chord with use-package as well, and load them with the other modules in the load test.
#1500: Set up Company, Ido, Ivy and Helm with use-package, the way the other modules do it, and test each of these modules in CI.
#1499: Set up each major mode with a named function on the hooks of the mode, the way you'd do it in your own config (see Upgrading):
prelude-ruby-setup is on ruby-mode-hook and ruby-ts-mode-hook, for instance, and runs before the functions you add to them, so that those have the last word.
The prelude-*-mode-hooks, prelude-lisp-coding-hook and prelude-interactive-lisp-coding-hook are obsolete. Prelude's setup still runs them at the end, and M-x prelude-doctor lists the ones your config uses, but running one from the hook of another mode no longer gives that mode Prelude's setup.
The prelude-*-mode-defaults functions are gone.
clojure-ts-mode buffers get the Clojure setup.
#1497: Tidy up the literate programming module: Org asks before running code blocks again (the module turned that off without saying so, which let exported Org files run their code), Org's setup waits for Org to load, deno code blocks work (ob-deno was installed but not loaded), and elpy, which was installed but never turned on, is gone.
#1496: Bring the ERC module up to date: it connects to Libera.Chat instead of the long gone Freenode, loads ERC only when it's used, and its commands and options have Prelude names (prelude-erc-start, prelude-erc-stop, prelude-erc-servers, prelude-erc-quit-message), with the old ones kept as obsolete aliases.
#1494: On Emacs 31, leave C-x O, C-x C-x without an active region and the prompt of completing-read-multiple to Emacs itself, which does what Prelude used to do for them (the latter showed the separator twice).
#1493: Stop installing browse-kill-ring and discover-my-major: M-y is Emacs's own yank-pop again, which lets you pick from the kill ring since Emacs 28 (the completion modules still bind their own), s-y is gone, and C-h C-m is back to view-order-manuals.
#1492: Search with ripgrep in xref and project-find-regexp when it's installed, and log the warnings of native compilation instead of popping up the *Warnings* buffer.
#1492: Leave the commands that are meant for other modes out of M-x completion (read-extended-command-predicate), whatever the completion framework.
#1492: Pair delimiters with the built-in electric-pair-mode in programming modes when smartparens is turned off (there was no pairing at all then), and turn on global-so-long-mode for files with very long lines.
#1492: Keep Dired and other buffers that don't visit files up to date (global-auto-revert-non-file-buffers), follow symlinks to version-controlled files without asking, and on Emacs 31 save the recent files and the places in files every 5 minutes.
#1491: Drop the OCaml module's workaround for registering neocaml with Eglot, which neocaml does itself since version 0.9.
#1489: Add a manual page on how Prelude's behaviour differs from stock Emacs in ways that aren't obvious.
#1489: Enable repeat-mode (e.g. M-g n n n keeps going to the next error) and context-menu-mode (a right click brings up a context menu instead of extending the region).
#1488: Show Eglot's diagnostics in Flycheck, with Flycheck's own flycheck-eglot-mode (a part of Flycheck since version 39), instead of only through Flymake.
#1487: Stop the Go, Ivy and Org modules from taking keys that belong to others. Go's test commands are now on C-c C-t t, C-c C-t f and C-c C-t p (the keys of go-ts-mode in Emacs 31) and go-run is on C-c C-r; Ivy no longer binds C-c C-r, C-c g, C-c j, C-c a and C-x l; Org no longer binds C-c b.
#1486: Make Tokyo Night the default theme, with its light variant during the day and the dark one at night: prelude-theme can now be a (DAY . NIGHT) pair, and prelude-theme-daytime says when to switch (with the system's light and dark mode where Emacs knows about it, by the clock elsewhere). Put (setq prelude-theme 'zenburn) in personal/preload to keep Zenburn.
#1483: Make all of Prelude's options work when they're set with M-x customize. Options that are read while Prelude starts (the theme, the minimalistic UI, the LSP client, etc.) used to be ignored there, as custom.el is loaded after the core; Prelude now reads its own options from it first.
#1483: Make prelude-auto-save and prelude-user-init-file do something again. The first turns super-save off when set to nil, the second is what C-c I (now prelude-find-user-init-file) opens: your personal folder rather than Prelude's init.el.
#1479: Stop forcing Apple Color Emoji on the whole Unicode range on macOS. That was a workaround from 2015; the Emacs versions Prelude supports pick a color font for emoji by themselves. Prelude doesn't configure any fonts now, and the manual shows how to set your own.
#1472: Start a language server for shell scripts, CSS, YAML and JSON when there's one installed (prelude-shell, prelude-css, prelude-yaml and prelude-js). A missing server isn't mentioned for those, and for SQL, as prelude-lsp-enable now takes a quiet argument.
#1471: Don't start Eglot in buffers whose language server isn't installed. Prelude mentions the missing server once for a major mode, instead of Eglot warning about it for every file you open.
#1470: prelude-format-on-save now controls the format on save of the Go and Rust modules, which also leave the formatting to Apheleia when prelude-apheleia is enabled (it now prefers goimports to gofmt as well).
Add an early-init.el that tunes startup: it raises the GC threshold while Emacs loads (restoring a modest value once startup is over), disables the tool bar via frame parameters so the initial frame is never drawn with one, sets frame-inhibit-implied-resize, native-compiles packages at install time (package-native-compile), and sets a sane LANG for GUI Emacs on macOS (which otherwise starts in the C locale and breaks spell-checker dictionaries and subprocess sorting).
Modernize the Eglot event-log setting to prefer eglot-events-buffer-config on newer Eglot, falling back to the obsolete eglot-events-buffer-size on older versions.
Add Embark (and embark-consult) to prelude-vertico: a keyboard-driven context menu bound to C-. (embark-act), C-; (embark-dwim) and C-h B (embark-bindings), with embark-export into editable grep/occur buffers. In Flyspell buffers those keys keep their Flyspell auto-correct meaning; Embark still works in the minibuffer and elsewhere.
Enable the vertico-directory extension in prelude-vertico: RET descends into the selected directory, DEL deletes a whole path component, and M-DEL deletes a word of it.
Enable corfu-history-mode in prelude-corfu so recently chosen completion candidates sort first (persisted across sessions via savehist).
Set consult-narrow-key to < in prelude-vertico, so you can narrow consult candidates to a single group (e.g. < b for buffers in consult-buffer).
Tidy up prelude-common-lisp: drop stale slime-autodoc-use-multiline-p setting (the variable was removed from upstream SLIME; modern autodoc honors eldoc-echo-area-use-multiline-p), set inferior-lisp-program to sbcl so M-x run-lisp works without SLIME, and add slime-quicklisp to slime-contribs for Quicklisp integration.
Enable lexical-binding in all of Prelude's Emacs Lisp files (including the sample prelude-modules.el), which silences the missing-cookie warnings Emacs 31 prints on every startup.
Stop installing gist (unused), and only install which-key and editorconfig on Emacs 29, since both are built into Emacs 30+.
Replace the unmaintained smartrep package with a plain transient keymap for the C-c . operate-on-number bindings. They work the same way: after the first operation, the operator keys can be repeated without the prefix.
Install all of Prelude's packages with use-package and :ensure t, and deprecate prelude-require-package and prelude-require-packages in favour of it. prelude-packages now starts out empty and gets filled in with every package Prelude ensures (including ones from modules), so prelude-update-packages and prelude-list-foreign-packages keep working, and your own use-package :ensure forms are tracked the same way.
Start up a lot faster (about 1.3s down to 0.4s in a terminal with the default modules): the shell environment is only fetched for GUI frames and daemons, packages are no longer initialized twice, and TRAMP, Eglot, calc, crux and the Perl, shell and XML modes are only loaded when they're actually used.
Bugs fixed
#1503: List your projects on the welcome screen, which left them out because Projectile reads them from their file only when they're first needed.
#1501: Keep C-c C-l, the prefix of Prelude's Eglot commands, in OCaml buffers, where ocaml-eglot took it for ocaml-eglot-find-definition (which M-. does as well).
#1500: Leave lsp-ui's options (lsp-ui-doc-enable and the like) to your personal config, which the lsp-mode module overrode as soon as lsp-mode got loaded.
#1500: Turn on evil-visualstar in the Evil module, which installed it but never turned it on, so * and # in visual state didn't search for the selection.
#1500: Load the Helm module with Projectile turned off (prelude-projectile), which failed because Helm's keymap wasn't loaded yet.
#1499: Set the options of Dart, Erlang, F#, Go, Perl and Ruby (gofmt-command, cperl-indent-level and the like) once, when the module is loaded, instead of every time a buffer is opened, which undid what you set in your personal config.
#1499: Set up the first Dart buffer of a session with lsp-mode as the LSP client, which failed because lsp-dart wasn't loaded yet.
#1499: Keep the warnings that some tree-sitter modes show when they're loaded without their grammar out of sight when Prelude loads them, as it was meant to, in the first buffer of a session too.
#1491: Install lsp-sourcekit in the Swift module when lsp-mode is the LSP client, as lsp-mode has no Swift support without it.
#1491: Match only whole file names for prezto's files (any file ending in zshrc opened in sh-mode).
#1491: Stop the LaTeX module from installing company-auctex (unmaintained, and pulling in Company for Corfu users); AUCTeX's own completion works with both.
#1491: Set up rust-mode buffers (the fallback for when there's no Rust grammar) like rust-ts-mode ones, with LSP, formatting on save and Cargo.
#1490: Indent C and C++ in the K&R style with 4 spaces as documented, in the tree-sitter modes (which used 2 spaces) and from the first buffer on, without overriding styles set by the user, and stop running the C setup in Java and the other cc-mode buffers that aren't C, C++ or Objective-C, where it reported a missing language server that eglot-java was about to install.
Update prelude-helm to current upstream variable/function names: rename helm-google-suggest-use-curl-p to helm-net-prefer-curl (deprecated alias since helm 1.7.7), rename helm-split-window-in-side-p to helm-split-window-inside-p (deprecated alias since helm 2.8.6), drop helm-ff-file-name-history-use-recentf (removed from helm; behavior is now unconditional), and drop the C-c w binding to helm-wikipedia-suggest (function moved to a separate helm-wikipedia package).
Drop C-c C-l binding to helm-comint-input-ring in prelude-helm-everywhere, as that command was removed from upstream helm.
Replace stale erc-autoaway-use-emacs-idle setting in prelude-erc with (setq erc-autoaway-idle-method 'emacs) (the old variable was removed; idle source is now selected via erc-autoaway-idle-method).
Rebind M-s m from removed consult-multi-occur to built-in multi-occur in prelude-vertico (consult dropped the wrapper in favor of the built-in command).
#1450: Remove broken slime-complete-symbol-function setting in prelude-common-lisp (referenced an undefined slime-flex-completions symbol; the variable itself has been obsolete since 2015).
#1453: Fix Common Lisp completion in prelude-common-lisp: call slime-setup so the configured contribs (and slime-c-p-c-completion-at-point) actually load, and skip SLIME completion when no Swank session is connected so company no longer errors with a void-function or "Not connected." message.
Fix prelude-ocaml integration with neocaml: hook into neocaml-base-mode (so .mli files are covered), enable ocaml-eglot-mode properly, and call prelude-lsp-enable so the LSP server actually starts.
Use ocaml-eglot-mode instead of the obsolete ocaml-eglot alias (renamed in ocaml-eglot 1.4.0).
Drop M-g e and M-g f from prelude-vertico's consult bindings so they no longer shadow the avy bindings (avy-goto-word-0, avy-goto-line) set in core. Bind consult-compile-error / consult-flymake in your personal config if you want them.
#1454: Drop stale tide references from the docs now that prelude-ts uses typescript-ts-mode + LSP.
#1462: Don't break the prelude-ocaml mode hook (and with it font-locking and line numbers) when ocaml-eglot isn't installed.
#1462: Refresh the package archives and retry once when installing a package fails, so a stale package cache (listing versions MELPA no longer has) no longer leaves packages uninstalled. Covers use-package:ensure as well as prelude-require-package.
Replace obsolete APIs flagged by the byte-compiler: company-show-numbers (now company-show-quick-access), helm-projectile-on (now helm-projectile-mode), racket-unicode-input-method-enable (now racket-input-mode), erc-server-buffer-p on ERC 5.6+, and the racket-repl-visit-definition binding on M-. (racket-mode uses xref now, so the global M-. already does the right thing). Drop the redundant uniquify-after-kill-buffer-p setting, which is on by default and obsolete in Emacs 31.
Fix package installs failing for the rest of the session after installing a package whose own code runs use-package with :ensure at compile time (such as recent SLIME with its slime-xterm-color contrib). The package name was recorded with its source position, which broke every later install on Emacs 30 and 31.
Don't break org-mode in prelude-literate-programming when Jupyter isn't installed: ob-ipython queried Jupyter for its kernels every time an Org buffer was opened and signaled an error if it wasn't there.
Make prelude-update stop with an error (showing the git output) when the checkout can't be fast-forwarded, instead of reporting success, and stop it from changing the current buffer's directory.
Don't install LSP-client-specific packages (lsp-dart, ocaml-eglot, eglot-fsharp) for users of the other LSP client.
Keep installing the packages of use-package :ensure forms after Prelude gets byte-compiled (as prelude-update does). use-package ensures packages at compile time when a file is compiled, so the compiled files never installed missing packages (and installed conditional ones regardless of their condition).
#1470: Fix opening a Rust file turning off "make scripts executable on save" for every buffer (the function on after-save-hook is now prelude-make-script-executable, which knows that #![...] isn't a shebang).
#1470: Format Rust buffers on save again (with the language server), as rust-format-on-save has no effect in rust-ts-mode.
#1470: Fix prelude-go's key bindings, format on save and super-save exemption not working in go-ts-mode.
#1472: Give JSON buffers the same setup in both JSON modes (json-ts-mode buffers got none of it, and neither did js-json-mode ones on newer Emacsen).
#1472: Don't run prelude-prog-mode-hook twice in CSS and web-mode buffers.
#1473: Fix SCSS files opening in fundamental-mode with prelude-scss enabled: the module installed the scss-mode package from MELPA, which no longer loads, and now uses the scss-mode that comes with Emacs.
#1473: Don't break fsharp-mode when eglot-fsharp failed to install.
#1473: Set up typescript-mode buffers (for those who still have the package) like typescript-ts-mode ones.
#1475: Open JavaScript files in js-ts-mode when its grammar is installed: .js files are associated with javascript-mode, an alias Prelude didn't remap, so they always ended up in js-mode. .mjs and .cjs files are recognized as JavaScript as well.
#1475: Install the jsdoc grammar together with the javascript one on Emacs 31+, where js-ts-mode fails to start without it.
#1476: Install tree-sitter grammars that work with the modes of the Emacs you're running: the pinned versions of the Go, JavaScript and TypeScript grammars were too new for Emacs 29 and 30 (breaking parts of their highlighting), the latest Swift grammar doesn't work with swift-ts-mode, and the YAML one could fail to build.
#1476: Don't try to install heex-ts-mode in prelude-elixir on Emacs 29, where it isn't available (it's built into Emacs 30+).
#1480: Stop Emacs from loading an outdated init.elc or early-init.elc instead of Prelude's current init files (it prefers them even when the sources are newer). prelude-update no longer compiles the two, and compiled copies left by older versions are removed on startup.
#1480: Fix several problems in the installer: it deleted the existing config even when backing it up had failed, never reinstated the old files it promised to keep (on macOS it couldn't at all), byte-compiled the core in a way that kept packages from being installed, and printed garbage with -c under some shells.
#1248: Make the installer leave ~/.emacs alone when Prelude is installed somewhere other than ~/.emacs.d.
#1481: Fix killing a rectangular region (C-x SPC followed by C-w), which killed the text between point and mark instead.
#1481: Don't re-indent code yanked into Python buffers using python-ts-mode (and other modes derived from the ones in prelude-indent-sensitive-modes, which now covers Haskell and F# as well).
#1481: Don't show the welcome screen next to a new file when Emacs is started with the name of a file that doesn't exist yet.
#1481: Fix a few automatic package installs: opening an SCSS file installed a broken scss-mode over the built-in one, any file under a Caskroom directory installed cask-mode, and Python type stubs (.pyi) were taken for Cython.
#1481: Stop pointing all projects at a single Projectile cache file (Projectile keeps a cache per project these days).
#1332: Stop prelude-mode from intercepting C-a and its other editing keys in terminal emulators (ansi-term, vterm, eat), where they never reached the shell.
#1296: Don't have Flycheck flag every Prelude variable and function used in a personal config file as undefined.