r/emacs • • 14h ago

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

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

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

13 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 • • 10h ago

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

Thumbnail gallery
10 Upvotes

r/emacs • • 13h ago

Highly experimental 2D Game for Org(agenda)

Thumbnail github.com
9 Upvotes

r/emacs • • 22h 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 • • 12h ago

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

4 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 • • 13h ago

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

Thumbnail github.com
4 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.