r/emacs • • 12h ago

Emacs on 20+ year old Powerbook

Post image
62 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 • • 9h ago

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

25 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 • • 37m ago

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

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

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

17 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 • • 22h ago

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

Thumbnail gallery
18 Upvotes

r/emacs • • 1d ago

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

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

Highly experimental 2D Game for Org(agenda)

Thumbnail github.com
11 Upvotes

r/emacs • • 1d ago

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

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

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

Thumbnail github.com
5 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 • • 7h ago

Question Emacs, did you mean: Vim?

Post image
0 Upvotes

I wanted to learn more about emacs. I saw Jonathan Blow using it, wanted to learn more about it. Watched some video. I wanted to learn more by googling it. Google try to correct me. I know what Vim and Neovim is, not so much about emacs. Made me think if emacs is based on vim.

It is kind of funny that this happens consistently. Is there something I don't know, or is this just google messing up. I thought y'all would get a chuckle out of this.


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

News GNU Hyperbole Release 9.3.3 is available

47 Upvotes

Hyperbole is a broad information management framework that augments your favorite Emacs libraries like Org and Consult. It can accelerate the things you do every day with Emacs if you give it a chance.

It installs in about 60 seconds. Get it from ELPA or MELPA. Learn about it from:

Version 9.3.3 resolves many edge case bugs and includes a limited number of feature updates, summarized below.


1. ACTION AND ASSIST KEYS

See Smart Keys.

  • 1.1 smart-org — In Org mode, with hsys-org-enable-smart-keys set to :buttons, ensure opening and closing quotes select the delimited region. Previously, this worked only on closing quotes.
  • 1.2 Reload Smart Keys — {M-RET} at the beginning of the top-level minibuffer menu reloads the Smart Key functions for times when the code is updated. Now it includes reloading of the Option, HyRolo and HyWiki menus as well as the minibuffer menu keymap. It also resets the Hyperbole version number in menus in case it has changed.

2. BUTTONS

See Buttons.

  • 2.1 Lambda Function Actions — Add initial support for using lambda functions as button actions.

3. DOCUMENTATION

See README.md.

  • 3.1 Copy Code — Add copy buttons for use with Hyperbole use-package code in Hyperbole Manual and README.md.html.

4. HYWIKI

See HyWiki.

  • 4.1 Export to HTML — Ensure HyWikiWord links are exported even when hywiki-mode is disabled.

5. KOUTLINER

See Koutliner.

  • 5.1 Klinks — Converted all EXAMPLE.kotl klinks from use @ to #, as that is the new standard. Disallow whitespace after # if there are no angle bracket delimiters around the klink.
  • 5.2 Export to HTML — Add export support for klinks that use # rather than @, e.g. <#2a=015>.
  • 5.3 Export to HTML — Update man/hyperbole.css to include 10 pixel left and right margins and to set width properly to 100% for adaptive display.

6. MENUS

See Menus.

  • 6.1 Minibuffer Menu Changes

    • 6.1.1 HyRolo coPy — Add "coPy" to prompt for and copy a HyRolo entry link to the kill-ring and clipboard (on Hyperbole pulldown menu, it is: Choose-and-Copy-Entry-Link).
    • 6.1.2 HyRolo Link — Add Link menu entry and doc for choosing and inserting an implicit link to a HyRolo entry (on Hyperbole pulldown menu, it is: Insert-Entry-Link-at-Point).

7. PROGRAMMING INTERFACE CHANGES

See Embedding Hyperbole.

  • 7.1 hsys-org-format-heading — Rename from hywiki-org-format-heading so can be used in both HyWiki and HyRolo.
  • 7.2 hyrolo-fgrep — Make 2nd call to hyrolo-fgrep-logical capture total-matches.
  • 7.3 hyrolo-fgrep-file, hyrolo-grep-file, hyrolo-fgrep, hyrolo-grep — Use max-matches value of :link to return a list of the first matching entry parts: (absolute-path-or-buffer-name-of-entry entry-headline) or nil when no entry is found.

8. TEST CASES

See the test directory.

  • 8.1 kotl-mode--org-cycling — Add tests for Org-style visibility cycling in the Koutliner.
  • 8.2 kotl-mode--insert-initial-tab-in-cell-row — Add this test.

9. FURTHER DETAILS

See HY-NEWS for detailed changes in the Version 9 Hyperbole series.

-- The End --


r/emacs • • 1d ago

bookmark-gt is in melpa

Thumbnail turingmachine.org
17 Upvotes

r/emacs • • 2d ago

Question Help?!

34 Upvotes

I’ve been using emacs since 1989 (yes, I’m that old - M-x spook means something to me). In recent years I’ve been running it on macOS and loving the experience.

Until recently. I don’t know if it is because of an OS update (running latest versions of emacs and macOS), the corporate Intune MDM deployment of Microsoft Defender and Teams, an update to an app or something else, but C-SPC (set-mark-command) is no longer registering.

This isn’t an emacs issue - this keystroke just isn’t reaching the app, or the Terminal command line either. Something is trapping it elsewhere and I just can’t seem to fathom out where.

This is a long shot, but has anyone else seen this before? If so, how did you find and fix it?


r/emacs • • 2d ago

Playing chess over IRC from Emacs, even against a bot

Thumbnail en.andros.dev
41 Upvotes

r/emacs • • 1d ago

Announcement Emacs Central meetup this Thursday, December 3rd

8 Upvotes

This is a monthly reminder. Every first Thursday of the month we meet without a specific agenda to blabber about Emacs stuff and anyone is welcome to join. This time is on December 3rd.

I understand that it's not the most convenient time for many (6 PM CST - UTC−6; 01:00 CET; 4PM PST), please don't sacrifice your sleep and other important matters just to attend it - I reckon it's not worth it - these meetings are typically not big, nor important or riveting. But if you decide to join, we'd love to see and hear from you.

https://www.meetup.com/emacsatx/events/

Direct link to the meeting https://meet.google.com/gzi-xxat-zhg


Previous meetings and notes:

November 5, 2026

September 3, 2026

August 6, 2026

July 2, 2026

June 4, 2026

May 7, 2026

April 2, 2026

March 5, 2026

February 5, 2026


r/emacs • • 1d ago

Question keycast popup frame issue

Post image
4 Upvotes

on the right is the frame shown when running keycast-log-mode

I have 2 main issues with it.

  1. why keys are pushed to the top
  2. why can't I copy text from that frame?

am I missing something?


r/emacs • • 2d ago

ANN: denote-org-fc

Thumbnail codeberg.org
4 Upvotes

I use org-fc for making flashcards right in my notes. It is similar to the famous spaced repetition program Anki. In my flashcards I put questions that help me memorize my notes with spaced repetition. Keeping the flashcards together with notes makes sense to me.

There are packages that integrate anki with emacs, but I found their workflows clunky, so I decided to use an emacs-native package for spaced repetition.

Anki organizes flashcards into collections called "decks". They make it easy to review cards on a certain topic together. Although org-fc has something similar, it requires tagging every flashcard (which is an org-subtree), adding a tag to its headline. I found it redundant, because my files already have denote keywords.

I think some users may find it handy.

org-fc: https://www.leonrische.me/fc/index.html

Anki: https://apps.ankiweb.net/


r/emacs • • 1d ago

Question No Melpa in package list

2 Upvotes

I'm on Fedora 7.3.6-300.fc45.x86_64 using Emacs 31.1 (build 1, x86_64-redhat-linux-gnu, X toolkit, cairo version 1.18.6, Xaw3d scroll bars) of 2026-11-01. In my init.el I have

(require 'package)

(package-initialize)

(add-to-list 'package-archives '(("melpa" . "https://melpa.org/packages/")

("org" . "https://orgmode.org/elpa/")

("elpa" . "https://elpa.gnu.org/packages/")))

When I evaluate this code and run package-refresh-contents I get an error:

Failed to download ‘(melpa . https://melpa.org/packages/)’ archive: Wrong type argument: stringp, (("org" . "https://orgmode.org/elpa/") ("elpa" . "https://elpa.gnu.org/packages/"))

I don't see any melpa packages in package-list-packages. I noticed this only recently, but I think the problem may have started after upgrading Fedora to version fc45 when Emacs 31.1 replaced version 30.1 iirc. Any attempts at help will be welcome.


r/emacs • • 2d ago

Announcement Best possible text completion?

Thumbnail youtube.com
53 Upvotes

r/emacs • • 2d ago

I discovered my one non-negotiable external package: vertico

86 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 • • 2d ago

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

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

Question Something I don’t understand about org mode.

8 Upvotes

When I make a todo for example and schedule it in an .org file somewhere on my computer, how can I make sure it’ll end up on my global todos ? Also can you make project level todos and schedule ?


r/emacs • • 3d ago

how to send a prefix key sequence in a command?

12 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


edit:

(defun my-ctl-x-r ()
  (interactive)
  (unless executing-kbd-macro
    (setq unread-command-events
          '((t . ?\C-x)
            (t . ?r)))))
  • the prefix echo & help work as intended, also with which-key
  • works in a keyboard macro