r/emacs • • 59m ago

I discovered my one non-negotiable external package: vertico

19 Upvotes

tl;dr Do you have an external package that you can't live without? Have you tried removing everything and starting from scratch, especially with emacs 31?

I've been writing a couple alternate configs for myself. One of them is for experimenting with packages that I don't currently use on a daily basis (consult instead of helm, for instance). My other config is the most absolutely minimal config I can get away with where I don't want to go insane.

It turns out I need one, and only one, external package to make that work for myself: vertico. For whatever reason, the default emacs completion--which I used literally for decades--drives me absolutely crazy now. I can't use it. I can deal with tab code-completion in a minibuffer and I can live with searching for files manually. But emacs' built in completion/search is so minimal, I spend so much more time typing in completions, obviating the benefit of a completion system at all sometimes.

(To be fair, the minimal config is meant to be functional for only the most basic tasks. I'm not going to try to do a lot of coding in it, but I want to be able to edit any file relatively quickly without bootstrapping a whole bunch of infrastructure that I won't necessarily need. I don't think I want to go back to writing code without eglot in the back end, but even that's built in now.)


r/emacs • • 14h ago

how to send a prefix key sequence in a command?

9 Upvotes

i tried with unread-command-events but it doesn't behave quite right.

(defun my-ctl-x-r ()
  (interactive)
  (setq unread-command-events '(?\C-x ?r)))

now M-x my-ctl-x-r then t indeed runs C-x r t (string-rectangle)

however the prefix echo (before hitting t) says C-x- (C-h for help) and hitting C-h indeed shows the help for C-x and not C-x r

i tried with (set--this-command-keys "\C-xr") to no avail.

emacs version 31.1


r/emacs • • 20h ago

Code reflection

8 Upvotes

Hello, i'm just an emacs user and currently an humble student, not programmer.

After some school stuff about c,java,swing,bash, something came to mind: i saw what java is doing with code reflection,hat,project babylon, why not have emacs copy the same idea and use it for other stuff but wrote in elisp to build stuff like swing does with java?(i don't know elisp personally), would it help create stuff in elisp and have them running on a gpu in opencl/sycle/cuda/opengl with async or make writing emacs gui easier and emacs the ide for it?. Probably the idea came up because i've never tried writing emacs packages and/ or gui in emacs and i just changed some stuff here and there in my config, what do you think about it?, could the same approach be used to write the parts needed all in elisp and run them in the language you need?.

With the help of ai could be done but i would like to know your opinion on this.


r/emacs • • 21h ago

I think I will get back to Emacs more often like before from now on

11 Upvotes

Since my last post on this subreddit, it appears obvious that I missed the heavy usage of Emacs a lot because I've noticed some repeating "if only" in my comments.

This weekend, I finally had enough and decided to build the tool I expeced to exists within Emacs instead of waiting: A node canvas for Emacs. Pretty similar to React Flow.

I called it RARY and it's public on github: https://donovan-ratefison.github.io/rary/

I've written an article too if you want to check out https://donovan-ratefison.mg/2026/11/29/Meet-Rary/

It's the foundation layer of everything that I intend to build inside Emacs later on.

I'd like to know your thought about this tool.
Is it of any use to you? What features could be interesting to have? What could be build on top of it, etc...
Feel free to put your crazy ideas

Edit: added a video


r/emacs • • 1d ago

Question Is auto completion a real security risk?

22 Upvotes

Completion menu on point in buffer showing automatically on typing e.g. functions is useful because it usually saves a lot keystrokes (not just completing the function name but even just triggering it with e.g. TAB key). There's a warning to enable this on corfu:

Auto completion is disabled by default for safety and unobtrusiveness. Note that completion can be vulnerable to arbitrary code execution. Auto completion can be enabled by setting corfu-auto to t. Only enable auto completion locally in trusted buffers or globally if you edit trusted files only.

That warning is repeated in this post which also mentions performance concerns using the setting.

Is the security (and to a lesser extent performance) concern a practical risk or is the warning just conservative? Does typical Emacs usage involve added risk when enabling this? I feel like if one uses any third-party packages (practically every user) all of these risks already exist in general unless they are reading all the source code. Could one still use this feature reasonably safely e.g. with tips to harden it?

Coming from Neovim, I've never heard of any these risks associated with auto completion enabled--not sure how they implement it or maybe these same risks are implied and/or reasonably acceptable?


r/emacs • • 1d ago

Im struggling to install matching mu and mu4e

6 Upvotes

Hi everyone,

This is Emacs adjacent, but sorry if its not enough.

In light of Yahoos increase in storage pricing (region dependent).

I have finally decided to move some emails from my Gmail into it (too late for my yahoo mail, Ive already deleted a huge chunk)

So Ive made offlineimap work (email syncing). But the Emacs part, which is mu4e produces this error.

Im struggling to install matching mu and mu4e

According to sources, you only need to install mu4e and the matching mu is installed. but its not working coz I got this error

Debugger entered--Lisp error: (error "Eager macro-expansion failure: (error \"Misplaced t...")
  error("Eager macro-expansion failure: %S" (error "Misplaced t or ‘otherwise’ clause"))

Another option I might try is cloning from https://github.com/djcb/mu , and I know how to avoid that specific dependency problem by switching to specific commits which lets me use the old libraries, 1 i think is glibc (Sorry, Im reluctant to move to Ubuntu 24 from 22, Im using Thinkpad T440 Intel i5-4300U, its probably fine, but a bit afraid of breaking changes).

Maybe you guys have faced similar situation, and finally moved to Ubuntu 24, or maybe a simpler solution that I cant see but its right in front of me

UPDATE:

what produced the error is actually (require 'mu4e)

After some confusion of installing of which comes from which (mu is from maildir-utils), I had to reinstall mu4e and maildir-utils just to make sure.

in the end, mu4e and mu through Ubuntu apt didnt work. so instead we cloned from https://github.com/djcb/mu and switch to specific commit (as more latest one will trigger glibc errors).

basically installing mu and mu4e version 1.12 (instead of the 1.6 version that came with Ubuntu 22 package manager) will solve the the (require 'mu4e) error. Even though the packages match, 1.6 was not enough.

(what a confusing mess, for me at least. In the Github repo, mu4e is shipped with mu, so installing mu is enough. The package manager on the other hand, also installs mu (which is itself under maildir-utils) if we do a sudo apt install mu4e)

There were also some confusion, in installing meson, I spent way too long on that little problem. Turns out, python3-pip was needed, since I havent made substantial Python project for a long while, I had no idea how Python installation is supposed to work (I was also paranoid about system Python years ago, that my global Python is not the system default, my global Python managed by pyenv, some trick called shim, and its not the same as virtual environment, what a confusing mess I made)

make sure u know where mu4e is installed, since its a Emacs package, its going to be under some site-lisp directory under Emacs. Since I have 2 Emacs version installed at different locations, and my user-emacs-directory is under a custom location, I got literally confused.


r/emacs • • 1d ago Heartwarming

Question What can your Emacs do that mine cannot (yet!)

19 Upvotes

My emacs can read books outloud, keep track of my reading, dictate text and execute voice commands, keep track of my agenda, personal finances, manage my passwords, play music and youtube, and diagnose prostate cancer. What does yours do?


r/emacs • • 1d ago

PSA: Don't use the PGTK version of Emacs on Wayland if you have a 4K monitor

36 Upvotes

This has been discussed on this sub already but I wanted to add my experience in case it helps anyone.

I started using Linux as a daily driver. It's awesome. I'm using KDE on Fedora. I built Emacs with pgtk (pass --with-pgtk to the configure script). Normally this is good and fine if you're using Wayland. However, if you have a 4k monitor that you like using with fractional scaling, Emacs built with PGTK will lag heavily on input. Miserable experience.

I rebuilt Emacs last night (just passed no options to configure) and Emacs is now wicked fast. Just a note in case it helps anyone. Hopefully this is something that gets fixed in the near future.


r/emacs • • 2d ago

Question How to fix buffer drawing issues?

7 Upvotes

I have this artifacts - sometimes it covers text, sometimes is after the end of line. C-l/C-v doesn't help. It just stays in one place for a while and annoys me so much...

In this case it is top two lines which left it on the screen. Org-mode, not sure if anywhere else.

Do you know what is happening? Thanks in advance.

Linux/Gnome/Ubuntu - GNU Emacs 31.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.52, cairo version 1.18.4) of 2026-09-22


r/emacs • • 2d ago

Ancla – a small Harpoon-inspired package for Emacs

0 Upvotes

Hi folks!

I just wanted to share a small package I made: Ancla.

It's inspired by ThePrimeagen's Harpoon for Neovim: you mark a few files you're working on and jump between them quickly.

I know there are already similar packages for Emacs. I just wanted to build my own, learn along the way, and share it with the community.

Repo: https://github.com/tinix/ancla

Any feedback is very welcome. Thanks!


r/emacs • • 2d ago

Menu systems

18 Upvotes

I was just reading a post elsewhere about classic IDEs like turbo pascal and their TUI menuing systems which made me a bit nostalgic. I *know* almost no one uses the shipping menus with Emacs and consequently they are kind of rough/neglected IMO. It seems like that would be a fruitful area to add to the new user theme that is now shipping. But also all the options for display today in GUI mode are a bit odd - it would be interesting if you could run the text mode menu code that ships only for TUI usage in GUI mode as well. I could almost see that having some additional applications as an alternative to transient or the casual package.

Context: Some older experiments with restructuring https://github.com/benleis1/emacs-init/blob/main/docs/menu-config.md I tried out. This was more an intellectual exercise than something I use because the ergonomics and usage model cut against it but I wonder if a small shift would change that equation like a completely keyboard / text version of menuing ala the 90s.


r/emacs • • 2d ago

Setting up Emacs for modern web development isn't for everyone.

0 Upvotes

The lack of current content on how to configure Emacs 31.1 with LSP and Treesittet without Claude is almost impossible. Adding typescript, Astrojs, Tailwindcss and Biomejs to work together made it even worse. We did not neovim already this whole well mature and documented simplified everything. Or what do you think? share your code.


r/emacs • • 2d ago

News Share your thoughts about LLM and Emacs community for the discussion panels

29 Upvotes

This year, during EmacsConf 2026, we are going to try panel discussions on two topics:

  1. Improving the Emacs Community: Onboarding, Participation, and Growth https://emacsconf.org/2026/talks/community/
  2. Emacs, LLMs, and Free Software https://emacsconf.org/2026/talks/llms/

We selected these topics because we believe that they are really important for the community, and we want more discussion and thoughts from different users. However, we can only invite a handful of people to participate in the live discussion. And a handful of people can only approximately represent the users.

Recently, we thought: why not simply ask all of you to participate asynchronously? The questions and topics are already public (see the links above), and we encourage everyone interested to try answering the questions themselves. Ideally, we want detailed answers to each of the questions in the discussion panels, closer to blog posts. Not only short comments.

You can send an email to emacsconf-org@gnu.org (or privately: emacsconf-org-private@gnu.org) with your answers or write a blog post, post a video, Mastodon thread, or anything linkable online. Then, send the link with your answers to emacsconf-org@gnu.org or, alternatively, ping Ihor https://fosstodon.org/@yantar92 or Sacha https://social.sachachua.com/@sacha on Mastodon.

By the time EmacsConf 2026 is live, we will add links to all the community answers on the talk pages, and select 5 answers to be read live during the panel discussion.

Looking forward for all your ideas and answers!

More details: https://emacsconf.org/2026/discussion/

EDIT: Added links to the questions and panel discussions.

EDIT 2: I will just put the full invitation from EmacsConf page here for completeness.


r/emacs • • 2d ago

Question Set indentation to exactly 1 tab

6 Upvotes

Hello. I recently started to mess around with emacs and it seems really cool, but i am really pissed off of how it does indentation.

In neovim i just have "shiftwidth" set to 4 and then i can just use "<<" or ">>" or press tab at the start of the line and it indents it with 4 blanks and when i press backspace it removes 1 level of indentation.

When i press tab in emacs, it tries to do some stupid "smart" shit. I've read manual pages about indentation, but they didn't really help me.

Then, i've found on reddit how to make tab always just insert tab and how to set tabstop, but when i was editing c++ file i wrote "std::" and it again changed indentation to it's stupid shit.

Please help me set indentation to exactly 1 tab.

EDIT: i did (setq-default c-basic-offset tab-width) and (setq-default c-hungry-delete-key 1) and now it's good for c mode


r/emacs • • 2d ago

Been working on merging modeline and tab-bar at the top of emacs...

Post image
19 Upvotes

I posted a quick snippet a while back that moved/copied a modeline to header-line. Since then I've been picking away at making it more versatile, integrating the tab-bar right into the mode/header-line as well. It can put the resulting bar in either the frame-level tab-bar space or window-level header-line, and uses moody for the visuals. In theory this should probably be broken into separate chunks but it meets my use case at this point so I thought others might find it interesting. I like map tab-next and tab-previous to C-<tab> and C-s-<tab> for tab navigation that works like a web browser.

https://github.com/bradmont/header-modeline

edit, oh forgot to mention, yeah it's built with the help of claude, but pretty well explored tested. Very open to feedback from others.


r/emacs • • 2d ago

News magit-gha-badge.el updates It's on MELPA. RET now shows the log of the run in Emacs (before it would open the GH page). `C-c C-o` for opening the page.

Thumbnail github.com
9 Upvotes

r/emacs • • 3d ago

emacs-fu not-occur

8 Upvotes

Was looking for a version of occur I'll call not-occur but I don't think there is one. Nor could I find the not of a regex. I could have used grep -v but I chose instead to scratch up an elisp loop using looking-at search-forward. But I was just wondering, did I miss something easy? Should I cons up a not-occur that runs occur and inverts the result?


r/emacs • • 3d ago

Why Is Emacs Still So Hard to Replace After 50 Years?

Thumbnail youtu.be
118 Upvotes

I've been putting off making this video for the past two years. Now that I finally have a bit more free time, I decided to share my thoughts on Emacs, especially since it turned 50 this year


r/emacs • • 3d ago

Question What is a good alternative to org-bars? It is interfering with org-cycle in my current Org 9.8.10?

7 Upvotes

For some reason org-bars causes only one outline to be expanded at anytime.

Whenever I expand an outline any other expanded outline closes.

It was working fine with Org 9.5.5 so I can only assume that it hasn't caught up with the latest org 9.8

Google AI considers switching to org-modern as alternative, but that appears to be overkill for my needs.


r/emacs • • 3d ago

Its just small Emacs update. Something simple nothing fancy.

Thumbnail youtu.be
3 Upvotes

My latest Emacs video.

Its about highlighting a phrase. Some simple custom functionality, Ive been using for a long time even before Ive tried LSP/Eglot/xref-find-definitinons. Combined with Hydra-mode (or transient-mode if ud like), I always go back to this one, especially when im learning something new (like a new prog lang)

If you enjoy these videos, and want me to produce more content like this. Please consider subscribing to my YouTube channel.


r/emacs • • 3d ago

Announcement I built a Codex plugin for viewing and editing Org files

0 Upvotes

I use Org in Emacs, and wanted my .org files to be readable inside Codex too, without maintaining a Markdown copy.

So I made Org Workbench, a plugin that opens Org files directly in Codex's file panel. It renders the document, but also lets you edit it: toggle TODO states and checkboxes, change table cells, or switch to source/split view. The original .org text stays the source of truth, with shared undo across views.

There's a folding outline, compact tables with aligned numbers, code highlighting, math, and light/dark reading profiles. One optional profile is inspired by Nicolas Rougier's NANO.

This reuses Uniorg for parsing/rendering, CodeMirror for source editing, KaTeX, Highlight.js, and the official MCP SDKs. I built the plugin with Codex's help, not a new Org parser or editor engine. GPL-3.0-or-later.

Repository | Screenshots

Installation, with Node.js 22+ and a current Codex CLI/Desktop already installed (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/guibor/org-workbench/v0.2.0/install.sh | sh

Restart Codex or open a fresh chat, then open an .org file. The installer uses a checksum-verified prebuilt release; the repo also has inspect-first and source-build instructions.

It's an early preview: no agenda, Babel, table-formula execution, or Emacs TODO hooks. Saves are explicit and depend on host write support; documents are limited to 1 MiB. The plugin itself makes no AI calls and adds no telemetry.


r/emacs • • 3d ago

Rex server, over talescale, in Emacs, via Portal. iPhone 🤌

Post image
37 Upvotes

This is insane. What a time we are living in. It's hard to explain what it is in the title:

Left: Portal terminal connected to Rex server

Right: the offical Rex app

middle: my iPhone via mirroring

Server hosted via tailscale. Now I can access to my session anywhere in the world via my phone.

Literally just downloaded the iPhone app 5 min ago after I saw this tweet: https://x.com/mitchellh/status/2126047712596631876?a=Mh2pSIs6KcEZkD-8PWU&s=20

Don't know how practical it is to operate the terminal sessions using a phone, but you can't deny that this is dope.

---

# links:

Portal: https://github.com/xiaoxinghu/portal

Intro video about Portal: https://youtu.be/1ZEjhN2Q3AE?si=qskLq2p--pFePBT4


r/emacs • • 3d ago

Top-line clock dock with color coded Clocked in task and org-timer display

Thumbnail gallery
21 Upvotes

Claude is pretty good at helping me realize additional functionality pretty fast.

Shows current clocked task compared against it's effort setting if it has one. Changes the foreground to yellow @ 80% of effort and red at 100%+.

I have a timer command that lets me start and name a timer and that displays here as well.

And ofc have a hotkey to toggle it open and closed.

As requested I've created a repo: https://github.com/Timmymayes/clock-dock


r/emacs • • 4d ago

Emacs + Agents: coding agents that show their work in Emacs, run workflows, and work as a crew

Thumbnail gallery
132 Upvotes

Hi r/emacs,

I've been building my Emacs setup around coding agents, and I'd like to share it: https://github.com/smyrgeorge/doom

It's a Doom Emacs config (Emacs 31, macOS and Linux, GUI or emacs -nw). On top of agent-shell it adds three things:

  • Agent UI: the agent shows its work under its conversation, updated in place: a checklist of its steps, test results filling in, progress bars, charts, diffs, and questions you answer right there. Any ACP agent (Claude Code, Codex, Gemini) can use it, through MCP tools or a small CLI (cmd/agent-ui).
  • Agent workflow: workflows on issues, described the way GitHub Actions does (jobs, their order, their steps). A step is a script, Lisp, or an agent with its own instructions. Each run works in its own git worktree, with a pane that follows it live.
  • Agent workspace: several agents on one project as a crew, each with a role and its own worktree, next to the project's issues (Beads) and a room where they talk.

There's more: project panels (dashboards kept in the repo, one Lisp file each), tiling window management with tabs in each pane, a three-way merge for Git conflicts, and PDFs, Excalidraw drawings and a live Markdown preview inside Emacs.

Why Emacs? It's a dynamic Lisp environment where almost anything can be built, and a harness that glues agents, code, workflows and tools together. It runs as a server too, so the agents (and you) can drive it from anywhere.

It's still under development. The next step is factoring Agent UI, Agent workflow and Agent workspace out into libraries that work without my config. Every feature has an offline example (M-x +my/example-agent-ui and friends), so you can try them without an agent.

Big thanks to xenodium for `agent-shell`, and to the `Doom` maintainers.
Feedback, ideas and bug reports are very welcome!