r/emacs • • 4d ago

Fortnightly Tips, Tricks, and Questions — 2026-12-01 / week 48

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

egfx-browser 0.6.0: A native cross-platform browser inside Emacs (WKWebView / WebKitGTK / Edge WebView2, zero CEF, zero Emacs patching)

38 Upvotes

Hi r/emacs,

I'd like to share egfx-browser 0.6.0, a native cross-platform GUI web browser that lives directly inside stock GNU Emacs 29.1+ with zero CEF bundling, zero Emacs binary patching, and zero offscreen pixel copying.

Built on egfx's GPU-less native container host, it mounts each operating system's own multi-process browser engine straight into an Emacs window:

Highlights

  • One Buffer per Page & 4 Switchable Tab UIs: Works with standard C-x b, C-x 3 splits, and q to close, while keeping your mode-line intact and limiting chrome to a single vector header-line. Switch live between sidebar, popover, compact, and none tab UIs, hibernate tabs (z), and restore closed tabs (u).
  • Keyboard-First Navigation: Unified completing-read Omnibar (o / t) backed by built-in Emacs 29.1+ SQLite (history, bookmarks, multi-engine search prefixes); non-blocking overlap-free Link Hints (f / F / y f); zero-DOM-pollution counted find (/ / N / P); automatic modal focus (INPUT on click, C-z passthrough, ESC straight back to Emacs); centered floating child-frame ? cheatsheet that never reflows the page.
  • Deep Emacs Ecosystem Integration:

    • Plugin-free Edit with Emacs (e edits any live web <textarea> in an Emacs split and commits back with C-c C-c)
    • One-key Org-mode / Markdown clipping (y o / y m) and native org-store-link (y l)
    • Native bookmark.el (C-x r m / C-x r b) and regex browse-url routing
    • Pure Emacs text Reader buffer (C-u R), html-mode source view (G v), *Browser Console* JS REPL (G c), PDF/PNG export, and native DevTools (<f12>)
  • Visuals, Sessions & Privacy: Native-first MIT Dark Reader (preserves native dark sites, dynamically themes bright white pages with optional warm sepia), icon-safe custom web fonts, clean Reader Mode (R), desktop browser cookie/bookmark import (Chrome, Arc, Edge, Brave, Firefox, etc.), pure in-memory private tabs, named multi-profile isolation, native adblock, and UserScripts/UserStyles.

Quick Start (GNU Emacs 29.1+)

git clone https://github.com/emacs-gfx/emacs-gfx
cd emacs-gfx
make -C packages/egfx native-build
make -C apps/egfx-browser native

Then add to your config:

(add-to-list 'load-path "/path/to/emacs-gfx/packages/egfx")
(add-to-list 'load-path "/path/to/emacs-gfx/apps/egfx-browser")
(require 'egfx-browser)
(egfx-browser-open "https://emacs-gfx.github.io/egfx-browser/")

Run M-x egfx-browser-doctor to check the native engine, SQLite store, and active profile. Feedback and PRs welcome!


r/emacs • • 9h ago

Question After years of resisting, I finally bound a key to consult-line and I'm mad I waited this long

41 Upvotes

I spend my days jumping between Python scripts and shell logs, and I was still using isearch plus a lot of C-s C-s C-s to scan through long config dumps. Last week I swapped in consult-line bound to C-c s, and being able to type a partial match, see all candidates with previews, and refine as I type completely changed how I dig through files. It also plays nicely with my workflow of jumping between work buffers since the preview shows me exactly where the match lands before I commit. Small lesson: if you're stuck on defaults because they've "always worked," spend one afternoon trying the consult suite—you probably have muscle memory you didn't realize was costing you time.


r/emacs • • 7h ago

A function to reduce startup flicker

6 Upvotes

This is the best improvement to Emacs' startup I've had. It wasn't made by me, after describing the problem of graphical flicker at startup to AI, it came up with something I've never seen or considered before and it works fantastically so I thought I'd share. At least on windows there is always distracting graphical flicker despite starting quickly which is solved just by setting the window frame alpha to 0 until the window setup is complete:

;; early-init.el
;; Paint the finished first frame while transparent, then reveal it. - sol
(when (and initial-window-system (not noninteractive) (not (daemonp))
       (not init-file-debug)
       (not (assq 'visibility initial-frame-alist)))
  (push '(alpha . 0) initial-frame-alist)
  (push '(visibility . nil) initial-frame-alist)
  (add-hook 'window-setup-hook
        (lambda ()
          (setq initial-frame-alist
            (assq-delete-all 'visibility
                 (assq-delete-all 'alpha initial-frame-alist)))
          (let ((frame (selected-frame)))
            (unwind-protect
                (progn
                  (make-frame-visible frame)
                  (redraw-frame frame)
                  (redisplay t))
              (set-frame-parameter frame 'alpha 100))))
        t))

r/emacs • • 18h ago

Feels so wrong

37 Upvotes

I do a lot of server work and use the terminal a lot. lately I figured why not try to just use emacs in the terminal and I cant put my finger on it, but I think I like it better than the GUI. I know seems wrong but its true.


r/emacs • • 54m ago

Indentation parser too slow?

1 Upvotes

Sometimes, when I write a new Scheme procedure, Emacs indents the body of the procedure incorrectly (indenting with TAB removes all indentation and sticks the text next to the line number column). Then if I just stop typing or clicking and wait for like 5 seconds, then press TAB again, it indents the body of the procedure correctly.

No, this is not a case of malformed code elsewhere in the buffer screwing with the indentation algorithm (I have experience with that type of mis-indentation, and I assure the reader that this problem is different). Is this a known bug? Is there a workaround or a configuration setting to fix it somehow?


r/emacs • • 1d ago

Announcement Leaving this under your pillow a few days early: au-bruma joins au-themes!

Thumbnail gallery
44 Upvotes

Hi!

In Poland, December 6 is St. Nicholas Day. Kids put their shoes by the door and wake up to something small and sweet. I won't be at my keyboard this Sunday, so I'm leaving this one a few days early.

This year's gift is Bruma, a new winter family in au-themes. It comes as two themes of the same snowy scene.

Screenshots as always:

https://szymon-wilczek.me/writings/au-themes-screenshots/#au-bruma-day

https://szymon-wilczek.me/writings/au-themes-screenshots/#au-bruma-night

Also! We have a lot of news:

We've got accepted into NonGNU ELPA! You can try out whole collection with:

M-x package-install RET au-themes RET :)

Bruma is already on the GitHub release, waiting for GNU mirrors to synchronize.

I've also started Discussions in the repo: https://github.com/szymonwilczek/au-themes/discussions

I want to have a better contact with you guys, so I can respond to feedback quicker and track the ideas. Go check it out!

And... there's one more Bruma theme still under the tree. It's waiting for Christmas Eve. Stay tuned.

Thanks for all the kind feedback on au-themes so far. Wishing you a warm, slow December with good tea and short compile times. If something looks off in your setup, I'll catch up after the weekend.


r/emacs • • 1d ago

native Emacs interface to OpenCode

9 Upvotes

I maintain opencode.el, an Emacs interface to OpenCode, a coding harness. Sharing now as I've been working on it and using it for a year now, and finally feel it's reasonably polished in terms of features present and bugs fixed.

Why use or develop this over all the other Emacs alternatives?

When I started opencode.el the alternatives in emacs were missing a lot of features I wanted, and I thought it'd be more practical to piggy-back on the massive non-emacs community of developers and just maintain an emacs integration with the most popular open source coding harness. Other emacs packages have improved a lot since then, but so has opencode and opencode.el with it. I included a comparison with agent-shell in the README.

Why use OpenCode from Emacs instead of from it's TUI?

I can in use it a lot faster, as I can quickly add buffers, regions, and files to context, complete symbols from my code in chat buffers, review changes with ediff, and more. And as many have experienced, once you integrate different things into emacs and have a consistent UI and language for dealing with different systems, interesting synergies happen. I have a sort of live coding environment for python in emacs (much less polished, only try now if you're ready to run into bugs), where I've been adding integrations with opencode.el, like hot reloading changes after LLM edits, asking questions about live objects, auto generating inspector views for objects, and automatically debugging exceptions. Longer term for my work I am integrating Org mode, opencode.el, swanky python, and another external software together, and what will be possible with them all integrated through emacs, I think will be quite powerful.


r/emacs • • 2d ago

Post-Quantum Cryptography

82 Upvotes

I guess many have already seen the news. Long story short, we’re being urged by many parties – including NSA, OpenAI, and Anthropic – to move to post-quantum cryptography as soon as possible. Based on the public comments from e.g. the Cloudflare CEO, it sounds like most likely AI has found some fundamental vulnerability that affects both RSA and Elliptic Curve cryptography, which would affect most of the SSH and GPG keys out there (at least on my up-to-date Fedora system, elliptic curve crypto is default for both of these programs).

I’m posting this here partly in case someone didn’t see this yet, and partly to see what everyone is doing about it. For SSH, the solution seems simple:

ssh-keygen -t mldsa44-ed25519

But I’m not sure what to do about GPG. I use it a lot since it’s well-integrated in Emacs, for example ~/.authinfo.gpg as a password store, various .org.gpg note files for sensitive content synced via cloud vendors, and so on. I see that GPG 2.5 added some support for PQC algorithms, but from what I could gather, it’s not as complete yet as in e.g. Sequoia PGP (which I hadn’t heard of before now, but appears to be made by former GPG developers).

Do you consider it sufficient to just update GPG to 2.5 and generate new PQC keys, or are people migrating to other crypto tools? If the latter, what are people using, and how well-integrated is it with Emacs? I think my most important usecase is to encrypt files that only I myself will use, so I suppose symmetric encryption already supported by GPG might also be an option, since AFAIK only asymmetric crypto appears to be affected.


r/emacs • • 1d ago

Superchat 2.1.0: Audited 3 weeks of my own Emacs chat logs, fixed 4 silly memory bugs, recall is 2.9× faster

7 Upvotes

Just released Superchat 2.1.0 — an Emacs-native agent that keeps all past chats and tool calls in one SQLite file.

Instead of building a fancier memory system, I read The Bitter Lesson for Agent Memory and audited 20 days of my own logs (~7,200 entries, 47 chats). Turns out four simple bugs were doing most of the damage:

  • Two long notes hid everything else**.** Pasting full note text into the prompt filled the budget immediately and pushed out every other note. Now the prompt just lists one line per note (#ID date title), and the agent opens one only when relevant.
  • Multi-word searches rarely matched**.** Searching "diary journal" looked for that exact phrase, and 2-character Chinese words failed inside longer queries. Now searches match individual words and rank entries matching more of them first.
  • Trimming threw away the best match**.** Long search results used to drop older entries first, often cutting the #1 hit. Now the best matches stay.
  • Citing a note accidentally deleted it. Over half of past note replacements in my logs were accidents. Citations and replacements are now separate, and old notes can be retired cleanly.

I re-ran 10 real questions from my own past chats on isolated copies of the database (deepseek-flash):

10 real questions (total)2.0.02.1.0
Answered correctly10 / 1010 / 10
Model rounds6525 (-62%)
Memory lookups73 (24 empty)18 (1 empty)
Total time151.2 s52.7 s (2.9× faster)

On one question ("how much disk space did my first cleanup free?"), 2.0.0 wandered for 20 rounds / 46s; 2.1.0 saw the title right away and answered in 2 rounds / 3.8s.

One caveat: on a progress-tracking question, 2.1.0 stopped right after reading a slightly older progress note (8.7s), whereas 2.0.0 stumbled onto a later message after 28 searches (49s). Good reminder to retire finished progress notes.

Also new since 2.0.0: Org-file workflows (with :fix: retry loops and resume), ghost-text completion (superchat-complete-mode), and org-indent-mode no longer shifting the chat prompt right. Needs Emacs 30.1+ and curl, ~7,400 lines of Elisp, 580 tests.

Feedback welcome!


r/emacs • • 1d ago

Dr. Macsio - an org-babel implementation of Dr. Mario

5 Upvotes

As an exercise in vibe-coding, I took tetris.el as a starting point and put together a little Dr. Mario clone with some help from Claude. This is formatted as a literate-programming file, so the README.org is also the source code (you just need that and the .xbm sprites to play it).

The game: https://github.com/fixermark/dr-macsio/tree/main

Some thoughts on using AI to make it: https://blog.fixermark.com/posts/2026/dr-macsio-and-claude/

Share and enjoy. ;)


r/emacs • • 1d ago

Taches, Calendrier & invitation

Thumbnail reddit.com
3 Upvotes

r/emacs • • 2d ago

Doc View Follow: Keeping the Last Page on the Right

Thumbnail emacs.dyerdwelling.family
13 Upvotes

r/emacs • • 2d ago

Lathe: a Java language server that takes its settings from your build, works with Eglot

18 Upvotes

A couple of months ago I asked here whether anyone would like a Java language server that reads what the Maven build captured link. Thanks for the feedback! New version 0.4.0 is out.

Lathe takes the compiler settings from your build and uses javac, so the editor sees your code the way the build does. It now supports Maven, Gradle, the OpenJDK build and Lombok, and runs on JDK 17+.

It works with the built-in Eglot, so you don't need a Lathe package. Register Lathe in your build, run the first build once, and point Eglot at the launcher it writes:

(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'(java-mode ".lathe/lathe-launcher.sh")))

I'm not an Emacs user, so I'd like to know whether there is interest in an alternative to JDT LS (standard Eglot java)? I wrote up how they compare: https://github.com/ag-libs/lathe/blob/main/docs/guide/jdtls-comparison.md

Emacs guide with a demo: https://github.com/ag-libs/lathe/blob/main/docs/guide/editors/emacs.md

Thanks for reading!


r/emacs • • 2d ago

Emacs on 20+ year old Powerbook

Post image
106 Upvotes

Spent most of the day configuring NetBSD. I'm using the same config as my desktop with a few things gated behind x86_64/netbsd, since i don't need things like eat or supersonic on this machine.


r/emacs • • 2d ago

emacs-fu spent an hour shaving 1.8 seconds off my init.el startup lol

43 Upvotes

i kept complaining about modern electron apps eating ram and taking forever to boot, and then realized my own emacs was taking over two full seconds to open a plain text file lol. humbled real quick.

ran esup on my config and turns out i was eagerly loading org-roam, magit, and a bunch of pdf-tools hooks right at launch even when i just wanted to edit one quick config line.

ended up deferring almost everything behind `:defer t` or `:commands` in use-package and moved some garbage collection thresholds around so gc doesn't fire ten times during boot. down to ~0.3s now on cold start and `emacsclient` handles the rest anyway.

funny how ppl always warn you about yak shaving in here, because i still haven't actually edited the file i opened emacs for in the first place.


r/emacs • • 3d ago

Question Using emacsclient as my journal while on-call, finally cleaned up my log capture workflow

18 Upvotes

I keep an org file per incident and used to lose minutes fumbling with timestamps and service names mid-outage. Now I have a tiny function bound to a global key that opens today's on-call log, inserts an active timestamp, and prompts for the service name from a list stored in a config file, since I only own three exporters. The biggest lesson was using org-capture with a template instead of hand-rolling the insertion logic, which I should have done from the start. Curious if others doing on-call work have templates for structured incident notes, especially anything that pulls in context automatically.


r/emacs • • 3d ago

Question Possibly unpopular opinion: I don't like Transient buffers

44 Upvotes

What I really love about Emacs is composability, being able to use isearch, Avy, or consult-line everywhere, including dired and Magit's log tree. Everything being a text buffer is the end-game killing feature, to me.

Transient menus are one of the few disappointing exceptions. Yes, they're text, but I can't interact with them using my usual tools. Same for Embark menus.

Sure, they look fancy and beautiful, but ultimately I always end up visually scanning the menu to find what I need, which feels unnecessarily slow.

When I'm fast with them, it's always because I already know what to press: in that case, ironically, they are unnecessary.

I wish I could replace transient menus with consult, for example. Maybe it's possible.

Am I the only one having this thought?


r/emacs • • 3d ago

sift v1.41.2 + sift.el - format, lint, LSP for Scheme, Racket, Emacs Lisp and CL: hardened documented and contributor-friendly

Thumbnail gallery
17 Upvotes

r/emacs • • 3d ago

Highly experimental 2D Game for Org(agenda)

Thumbnail github.com
13 Upvotes

r/emacs • • 3d ago

Solved Access bookmark in org-capture-template, so close

6 Upvotes

Tl;dr: org-capture-template jumps to the headline after the intended one, how to fix?

Trying to add a "bookmark" to org-capture-template--the idea is that adding and editing notes should be in the same interface as a way to quickly do that in a split window then get back to work. If I add to a grocery list, I might want to review the list or re-order it. When I record the note I do not want to consciously think about whether to use an org-capture template or to jump to a bookmark, i.e. I want the effect of C-u org-capture to jump to as a bookmark in the org-capture-template so I am simply presented with a buffer to either add or edit notes. I am not looking for checkitem or typical template that only lets the user add (but not edit) notes.

The following code is close, but there are issues:

(defun my/goto-grocery-list-template ()
  "Move cursor to the 'grocery list' headline in the current Org buffer."
  (interactive)
  (let ((pos (org-find-exact-headline-in-buffer "grocery list")))
    (if pos
      (progn
        (goto-char pos))
      ;; TODO create the headline if it doesn't exist instead
      (message "Headline 'grocery list' not found."))))

   (setq org-capture-templates
                '(("g" "Jump: Grocery list" plain
                  (file+function "~/docs/notes/shopping.org" my/goto-grocery-list-template)
                  ""
                  :immediate-finish t
                  :jump-to-captured t)))
   )

Issues:

  • It seems to jump (have cursor on) to the headline after the target headline--I cannot get it to jump to the grocery list headline. I'd also prefer to jump to the empty line after the line matching "List:" in the content of this headline (so I can simply start typing to add item to the list instead of moving the cursor past the properties drawer). If I C-u org-capture, I jump to the target headline as intended, just can't do the same as a capture "template".
  • Ideally this can be done in a split window to mimic org-capture where you do your edits then the window is closed and you resume your work--currently it just uses the existing buffer and doesn't take me back to the buffer I came from (i.e. it's like jumping to a bookmark).

An alternative idea is to have the org-capture template show a narrowed buffer of the target headline to edit the file but that seems like a more convoluted implementation.


r/emacs • • 3d ago

terminal-colors - Apply color schemes to your Emacs terminal: vterm, eat, term, and ansi-term [Release 1.0.0]

Thumbnail github.com
6 Upvotes

Is your favorite theme causing your Emacs terminal to have washed-out colors, poor contrast, and hard-to-read output?

The terminal-colors package gives Emacs terminals a fresh look with dedicated terminal color schemes for vterm, eat, and term (ansi-term). It allows keeping your favorite Emacs theme while giving the Emacs terminal its own colors, similar to those of standalone terminals like gnome-terminal.

By default, Emacs terminal emulators inherit their ANSI colors and background from the active Emacs theme, which can result in low contrast or unreadable text in terminal applications. The terminal-colors package decouples terminal colors from the global Emacs theme, applying dedicated palettes and buffer-local foreground and background colors.

Note: If this project helps your workflow, please consider supporting the project by ⭐ starring it on GitHub and sharing it on your website, blog, Mastodon, Reddit, X, LinkedIn, or other social media platforms so other Emacs users can discover its benefits.


r/emacs • • 3d ago

Treesitter binaries and Windows Emacs

9 Upvotes

I am using Emacs on Windows and installed pre-built treesitter binaries from https://github.com/emacs-tree-sitter/tree-sitter-langs These binaries are no longer updated. How do I get new / updated treesitter grammars under Windows?


r/emacs • • 3d ago

bookmark-gt is in melpa

Thumbnail turingmachine.org
18 Upvotes