r_emacs | Unsorted

Telegram-канал r_emacs - /r/emacs

81

This channel is a feed for r/emacs. @r_channels @reddit2telegram

Subscribe to a channel

/r/emacs

I discovered my one non-negotiable external package: vertico

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

https://redd.it/1y9ehlw
@r_emacs

Читать полностью…

/r/emacs

Code reflection

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.

https://redd.it/1y8r1bv
@r_emacs

Читать полностью…

/r/emacs

Its just small Emacs update. Something simple nothing fancy.
https://youtu.be/vL1fjmw9xiA

https://redd.it/1y6qqci
@r_emacs

Читать полностью…

/r/emacs

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

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?

https://redd.it/1y7wqqf
@r_emacs

Читать полностью…

/r/emacs

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

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.

https://redd.it/1y7v85c
@r_emacs

Читать полностью…

/r/emacs

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

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.

https://redd.it/1y7mavc
@r_emacs

Читать полностью…

/r/emacs

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

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/&gt;
2. Emacs, LLMs, and Free Software
<https://emacsconf.org/2026/talks/llms/&gt;

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
yantar92">@yantar92@fosstodon.org or Sacha
sacha">@sacha@social.sachachua.com 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.

https://redd.it/1y7j8bj
@r_emacs

Читать полностью…

/r/emacs

Been working on merging modeline and tab-bar at the top of emacs...
https://redd.it/1y760l6
@r_emacs

Читать полностью…

/r/emacs

not-occur

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. But I was just wondering, did I miss something easy? Should I cons up a not-occur that runs occur and inverts the result?

https://redd.it/1y70f8v
@r_emacs

Читать полностью…

/r/emacs

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

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.

https://redd.it/1y6w1n0
@r_emacs

Читать полностью…

/r/emacs

Rex server, over talescale, in Emacs, via Portal. iPhone 🤌
https://redd.it/1y6gzvl
@r_emacs

Читать полностью…

/r/emacs

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

https://redd.it/1y61css
@r_emacs

Читать полностью…

/r/emacs

Marcin Borkowski: Improving support for named frames in Emacs
https://mbork.pl/2026-11-23_Improving_support_for_named_frames_in_Emacs

https://redd.it/1y5ky9g
@r_emacs

Читать полностью…

/r/emacs

fastctags 2.0.0 is released
https://redd.it/1y56cgb
@r_emacs

Читать полностью…

/r/emacs

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

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](https://github.com/emacs-taf/etaf) and [Ebox](https://github.com/emacs-taf/ebox)).

* **GitHub (source & installation)**: [https://github.com/emacs-taf/etaf-md](https://github.com/emacs-taf/etaf-md)
* **YouTube 1080p walkthrough (\~5 min)**: [https://www.youtube.com/watch?v=ts\_uzPeMa0E](https://www.youtube.com/watch?v=ts_uzPeMa0E)
* **ETAF GitHub org**: [https://github.com/emacs-taf](https://github.com/emacs-taf)

# 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](https://github.com/obsidianmd/pele) (Mermaid to SVG) and lazily loaded [MathJax](https://github.com/mathjax/MathJax-src) (TeX display math to SVG) inside one sandboxed [QuickJS](https://github.com/bellard/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):

Читать полностью…

/r/emacs

how to send a prefix key sequence in a command?

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


https://redd.it/1y8yrmf
@r_emacs

Читать полностью…

/r/emacs

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

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 would/will 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

https://redd.it/1y8phhb
@r_emacs

Читать полностью…

/r/emacs

Is auto completion a real security risk?

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?

https://redd.it/1y890hs
@r_emacs

Читать полностью…

/r/emacs

Im struggling to install matching mu and mu4e

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

https://redd.it/1y82ruf
@r_emacs

Читать полностью…

/r/emacs

How to fix buffer drawing issues?

https://preview.redd.it/q9wsdmfg0e4i1.png?width=517&amp;format=png&amp;auto=webp&amp;s=fcd949f0209e09a3189b6eacdf285c5efc7e91bc

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



https://redd.it/1y7rgxe
@r_emacs

Читать полностью…

/r/emacs

Menu systems

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.

https://redd.it/1y7pcow
@r_emacs

Читать полностью…

/r/emacs

Set indentation to exactly 1 tab

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.

https://redd.it/1y7h0q3
@r_emacs

Читать полностью…

/r/emacs

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.
https://github.com/agzam/magit-gha-badge.el

https://redd.it/1y756p0
@r_emacs

Читать полностью…

/r/emacs

Why Is Emacs Still So Hard to Replace After 50 Years?
https://youtu.be/fzDSXohmVl4

https://redd.it/1y6x1fw
@r_emacs

Читать полностью…

/r/emacs

I built a Codex plugin for viewing and editing Org files

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.

https://redd.it/1y6pbhx
@r_emacs

Читать полностью…

/r/emacs

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

https://redd.it/1y6afj2
@r_emacs

Читать полностью…

/r/emacs

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

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

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?

https://redd.it/1y5yigs
@r_emacs

Читать полностью…

/r/emacs

How is Emacs as PDF viewer and LaTeX editor with Vim keybindings?

Hi everyone, I'm looking around for a setup to help with my study. My major is pure maths so my daily routine requires reading a lot of academic papers and books, plus some LaTeX editing from time to time. My current setup includes:

Neovim and VimTex as LaTeX editor. I'm not even close to a poweruser but I get along with the keybindings nicely and I enjoy it very much.
Sioyek as PDF reader. It also has Vim keybindings plus some nice features, for example I can right click a citation or reference in a paper and the referred theorem/definition will show up in a popup window.

On my Linux system everything was fine. But I got tired of maintaining and dualbooting (and distrohopping) a few months ago and decided to retreat to Windows 10. From then my setup never works as smooth as before. Neovim + VimTex on Windows feels awkward, the fact that I need to use an unconventional IME in Neovim doens't make life any easier. I can't get Sioyek to synctex properly and some other inconvenience forces me to search for a better option.

I ask Gemini and it suggests Emacs + Evil mode + AUCTeX + pdf-tools. I have no experience with Emacs before so I write a post here to ask for people's experience. Do you think this combo can replicate my current setup? If you have any other advice I would be very grateful.

https://redd.it/1y5ceip
@r_emacs

Читать полностью…

/r/emacs

`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

*Processing img xsbzfjzpfq3i1...*

*Processing img fz0ed1qqfq3i1...*

*Processing img goq0hc9rfq3i1...*

*Processing img 4dhztmtrfq3i1...*

# Installation (Emacs 29.1+)

See the [Installation section in the README](https://github.com/emacs-taf/etaf-md#installation) 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](https://github.com/LuciusChen/pele.el), building on unmodified vendored [Obsidian Pele](https://github.com/obsidianmd/pele), Fabrice Bellard's [QuickJS](https://github.com/bellard/quickjs) and [MathJax](https://github.com/mathjax/MathJax-src).

Feedback, bug reports and PRs are very welcome!

https://redd.it/1y54jw9
@r_emacs

Читать полностью…

/r/emacs

CVE-tracer4notes: Tracking the latest CVE vulnerabilities with an list view, customizable tag filtering and note linking for analysis and PoC
https://redd.it/1y53xdi
@r_emacs

Читать полностью…
Subscribe to a channel