r/emacs • • 11d ago

Fortnightly Tips, Tricks, and Questions β€” 2026-11-17 / week 46

14 Upvotes

This is a thread for smaller, miscellaneous items that might not warrant a full post on their own.

The default sort is new to ensure that new items get attention.

If something gets upvoted and discussed a lot, consider following up with a post!

Search for previous "Tips, Tricks" Threads.

Fortnightly means once every two weeks. We will continue to monitor the mass of confusion resulting from dark corners of English.


r/emacs • • 6h ago

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

17 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.

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 • • 1h ago

Menu systems

6 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 • • 8h ago

Question Set indentation to exactly 1 tab

7 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


r/emacs • • 15m 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 • • 1d ago

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

Thumbnail youtu.be
81 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 • • 3h ago

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

1 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 • • 18h ago

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

Post image
12 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 • • 19h 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
6 Upvotes

r/emacs • • 22h ago

emacs-fu not-occur

6 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 • • 1d ago

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

6 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 • • 1d ago

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

Post image
31 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 • • 2d ago

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

Thumbnail gallery
108 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!


r/emacs • • 1d ago

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

Thumbnail gallery
19 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 • • 1d ago

Its just small Emacs update. Something simple nothing fancy.

Thumbnail youtu.be
0 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 • • 2d ago

For Heavy LLM users, what's your Emacs use cases?

43 Upvotes

I'm curious to know for those using LLM heavily (coding etc), what is left on Emacs that the LLM didn't took away. And how often do you use Emacs.

In my case, I use LLM heavily for professional work as dev (can't really do otherwise)

What's left on Emacs for me:

- meeting notes: I'm used to the outline-approach of Logseq and org-mode is perfect.

- writing stuffs (denote): for insights and drafting ideas.

- journaling : all things I took/take from my custom-made mobile app (vakana.mg) still are exported to org and sent to my computer

- calendar and mail client

- rss feed

I used to shape my prompt on Emacs scratch buffer a lot but that's gone too. For convenience and productivity, I built another tool that resemble how my mind works (mostly visual). Hope someone will do something interesting on the Emacs canvas soon.

When I'm fed up of LLM stuff, I'm back to Emacs. To Org especially. I don't do much elisp anymore.

How about you?


r/emacs • • 1d 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 • • 2d ago

emacs-fu advent-mode: a small Emacs minor mode for AoC (fetch inputs, submit answers, without leaving Emacs)

Thumbnail reddit.com
12 Upvotes

r/emacs • • 2d ago

Marcin Borkowski: Improving support for named frames in Emacs

Thumbnail mbork.pl
17 Upvotes

r/emacs • • 3d ago

etaf-md 0.3.0: Native Markdown reader and live preview in Emacs (zero-browser QuickJS Mermaid & MathJax, extensible containers)

47 Upvotes

Hi r/emacs,

I'd like to share etaf-md 0.3.0, a native Markdown reading view and live previewer rendered directly inside an ordinary Emacs buffer (built on ETAF and Ebox).

Why build another Markdown previewer?

Previewing Markdown in Emacs usually forces a split between opening an external browser (losing Emacs keybindings, window management and isearch) or staying in plain text where tables, diagrams, math and rich documentation blocks fall apart.

etaf-md renders the whole document into a single regular Emacs buffer without hijacking scrolling: native C-s isearch, trackpad/wheel scrolling, window splitting and imenu keep working, while centered reading measure, heading scale, full-grid tables, code blocks, native vector diagrams and interactive widgets are rendered by ETAF + Ebox.

Highlights in 0.3.0

1. Zero-browser Mermaid & MathJax rendering (inspired by pele.el)

Rather than spawning mermaid-cli + headless Chromium for every diagram, etaf-md ships an optional C11 Emacs dynamic module under native/ (all upstream vendor sources bundled offline β€” run make native-build once):

  • Runs vendored Obsidian Pele (Mermaid to SVG) and lazily loaded MathJax (TeX display math to SVG) inside one sandboxed QuickJS background thread, notifying Emacs via open_channel.
  • No Chromium, no Node.js, no per-diagram subprocesses: native CoreText (macOS) / Pango (Linux) label measurement, static CSS-variable expansion for Emacs's librsvg, and on-disk caching. On a 28-diagram + 6-formula stress document (examples/all-syntax.markdown), cold full render takes ~300 ms.
  • Diagrams follow the reading column at crisp 1:1 text proportions, open in an in-buffer lightbox on RET, and keep the last valid SVG visible while typing (stale-while-revalidate) so live editing never flickers.
  • Automatically falls back to mermaid-cli + KaTeX if the native module is not built or a Mermaid dialect is not yet supported by Pele.

2. Minimal global surface & O(Ξ”) incremental live split preview

To keep M-x and global keymaps clean, etaf-md exposes strictly two global commands (no global keybindings forced on users; all navigation and view controls live locally in the preview buffer):

  • M-x etaf-md-open β€” opens a full-width reading view in the current window (q restores the source buffer in place).
  • M-x etaf-md-preview β€” toggles a non-destructive right-hand live preview split with proportional scroll-follow while keeping focus in your Markdown buffer.

Edits coalesce on a 16 ms frame tick and splice-parse only the changed block slice, keeping interactive state (collapsed sections, active tabs, checkboxes) untouched across the rest of the document.

3. 35+ extensible ::: containers & Emacs living-document widgets

Beyond full CommonMark + GFM (full-grid tables, interactive - [x] checkboxes that write back to source, footnotes with jump & ↩ return, GitHub/Obsidian collapsible alerts, fenced code line numbers / diff / highlight / focus markers / one-click copy), etaf-md includes:

  • Documentation containers: card, columns, steps, timeline, stats (with sparklines), sortable table, tabs, code-tabs, accordion, diff (split/unified toggle), pros-cons, chart, progress, keymap, file-tree, qrcode, plus etaf-md-define-node to register your own custom blocks.
  • Emacs living-document widgets (workspace-sandboxed and trust-gated): symbol (live Emacs symbol signature & docstring), code-ref (top-level Elisp definition inclusion), include, project-tree, git-log / git-diff (Git & Jujutsu), and confirmation-gated run runbook blocks.

4. Four themes (auto, dark, light, sepia)

auto derives every panel, table and diagram color directly from your current Emacs theme faces; pressing t cycles dark, light, sepia and auto.

Screenshots

Full-width reading view: headings, spoilers, highlighted code blocks, sparkline stats and sortable table
Side-by-side live preview with native QuickJS + Pele Mermaid rendering
Horizontal timeline, split diff, pros/cons cards and independent *ETAF Outline* side window
Light palette with native vector Git graph and user journey diagrams

Installation (Emacs 29.1+)

See the Installation section in the README for the one-time package.el / M-x etaf-install bootstrap (automatically fetches etaf, etaf-ui, ebox and ecss) or source-checkout setup.

To enable the zero-browser QuickJS Mermaid & MathJax dynamic module after installing (requires a C11 compiler and Python 3; builds completely offline from vendored sources):

cd ~/.emacs.d/elpa/etaf-md-* && make native-build

Open any .md file and run M-x etaf-md-open or M-x etaf-md-preview, or try the bundled examples/all-syntax.markdown and examples/widgets-showcase.markdown. Run M-x etaf-install-doctor anytime to inspect optional capabilities.

Acknowledgements

The embedded QuickJS + Pele + CoreText/Pango background-thread SVG architecture in native/ is directly inspired by LuciusChen/pele.el, building on unmodified vendored Obsidian Pele, Fabrice Bellard's QuickJS and MathJax.

Feedback, bug reports and PRs are very welcome!


r/emacs • • 3d ago

fastctags 2.0.0 is released

Post image
30 Upvotes

fastctags 2.0.0 (https://github.com/redguardtoo/fastctags), code navigation and completion package based on Universal Ctags

Change log,

  • Use pure Lisp to generate tags from JSON files. Tags use the full property path (e.g. recipeList.allTags) rather than just the property name (e.g. allTags).
  • Fixed several grep bugs for more reliability

r/emacs • • 3d ago

pele.el: Bringing Obsidian's Pele Mermaid renderer into Emacs

Thumbnail gallery
117 Upvotes

I recently put together a small package, [pele.el](https://github.com/LuciusChen/pele.el), that brings [Pele](https://github.com/obsidianmd/pele) (the Mermaid renderer maintained by kepano / Obsidian) into Emacs.

I wanted to write Mermaid directly in Emacs, see the diagram update while editing, and export SVG when done, without setting up Mermaid CLI, Node.js, or a browser.

What it currently supports:

- Syntax highlighting and basic indentation for `.mmd` and `.mermaid` files. The highlighting rules are ported from Pele's site to pure Elisp and can be used on their own without the rendering module.

- Live SVG preview for `mermaid` and `pele` blocks in Org mode. While typing incomplete syntax, it keeps the last valid render.

- A standalone preview window, plus preview and SVG export for a selected region in any buffer.

- Org Babel SVG output.

- Colors follow your current Emacs theme, with a transparent canvas by default and filled nodes.

Editing and highlighting are pure Elisp. Rendering runs upstream Pele inside a dynamic module with embedded QuickJS, with layout and SVG generation on a background thread. Besides flowcharts, it supports sequence, class, ER, Gantt, mindmap, and pie charts; syntax and layout compatibility follow Pele.

Requirements:

- Emacs 29.1+

- Dynamic module support (for rendering) and SVG support (for preview), built from source on macOS or Linux

- Pango is recommended so label widths are measured using actual fonts

Install and setup instructions are in the README (MIT license):

https://github.com/LuciusChen/pele.el

Feel free to try it on your own diagrams. If you run into any layout or syntax issues, posting a minimal Mermaid example helps a lot with debugging.


r/emacs • • 3d ago

CVE-tracer4notes: Tracking the latest CVE vulnerabilities with an list view, customizable tag filtering and note linking for analysis and PoC

Post image
19 Upvotes

What it does

β€’ Elfeed-style list view (*cve-tracer4notes*): Shows three columns by default β€” CVE-ID, Brief Info, and Tags

(customizable via cve-tracer4notes-list-columns).

β€’ Live filtering (s) & auto-tagging: Supports Elfeed-inspired filter queries that update the list as you type:

β€’ +critical +unread -low (include/exclude tags)

β€’ @7-days-ago / @2026-11-01 (date range)

β€’ >=7.0 (CVSS threshold)

β€’ #50 (result limit), !wordpress (negated match), plus keywords/regexes

β€’ Add/remove custom tags (+ / -) on single entries or an active region, and define automatic tagging rules via

cve-tracer4notes-tag-rules (e.g., auto-tag kernel or memory based on regex/CWE/CVSS).

β€’ Built-in SQLite storage: Uses Emacs 29+'s native sqlite-open (WAL mode) to cache CVEs, tags, and note links locally

β€” re-fetching updates metadata without clobbering your custom tags or linked notes.

β€’ Async CVE fetching with fallback: Queries NVD API v2.0 (supports optional API key for higher rate limits) and

automatically falls back to CIRCL Vulnerability-Lookup (CVE JSON 5.x) if NVD fails or rate-limits. You can also fetch

any specific CVE on demand (f).

β€’ CVE detail view + Denote note linking: Clicking a CVE (or pressing RET) opens *cve-tracer4notes-detail* with CVSS

metrics, CWEs, description, affected products/CPEs, clickable references, and a Linked Notes section.

β€’ Uses Denote by default (a / [+ New Note] creates a note titled by CVE-ID with a structured Overview / Root Cause

/ Environment & Reconstruction (PoC) / Patch & Mitigation / References template and auto-tags the CVE as noted).

β€’ Also supports linking existing Denote/arbitrary files (l), or switching cve-tracer4notes-note-backend to 'org,

'markdown, or 'custom functions.

https://github.com/curtainp/CVE-tracer4notes


r/emacs • • 3d ago

RSI tip for Thinkpad users

27 Upvotes

Emacs pinky started to get really severe using caps lock as Ctrl on my laptop. I was panicking thinking I might have to stop using Emacs, until I realized I have three unused buttons exactly where my thumbs naturally rest below the space bar: the trackpoint mouse buttons.

So after some research, I found keyd and mapped the trackpoint buttons to Alt and Ctrl.

First install keyd (eg. pacman -Syu keyd), then do sudo keyd monitor and click the mouse buttons to see their id.

Make a file /etc/keyd/trackpoint-modifiers.conf with

[ids]

<the id printed by keyd monitor>

[main]

rightmouse = leftcontrol
leftmouse = leftalt

sudo systemctl enable --now keyd should work, if not then you may need to restart (been a while since I set it up).

I'm sure you can do this with AutoHotkey on Windows but I haven't tried it myself.

If you do use the trackpoint but are keyboard-only in Emacs, keyd comes with keyd-application-mapper which will activate a set of mappings when a certain matching window is focused.