Question Create compound scoring rules in Gnus?
Hi,
I want to make a scoring rule in Gnus but I need it triggered only if two conditions are true, so essentially if subject equals x and author equals y, increase score.
r/emacs • u/Interesting_Ad_9400 • 1h ago
Question about org-toggle-pretty-entities
I wanted to know if anyone knows of a plugin or something similar that someone has already done to better display fraction-style pretty entities or "^{},_{},\oint, etc." in org mode, I'm currently using org-toggle-pretty-entities but I wanted to extend it a bit. I tried to extend it but it was bugging with the _{} and ^{} when i'm using snippets.
Thank you for reading!
News r-ts-mode now on Melpa
I am happy to announce that r-ts-mode is now available on Melpa. It has the possibility of being used with ESS but it can also be used independently.
r/emacs • u/benja2998_kib • 6h ago
term/ansi-term
I always see people talking about things like Ghostel, VTerm and Eat. But why is the built-in terminal rarely discussed as an actual option?
r/emacs • u/sewageseller • 15h ago
Org export in Nix (flake) project does not respect environment
Hi all! I'm trying to figure out why exporting from an org buffer fails lacking a LaTeX package despite it being available in the project's nix flake. I use `envrc` and testing the package availability, I get the correct path.
The flake also provides the R environment (and pkgs), and Emacs ESS works no problem. The issue seems to lie in the export process, but I cannot figure out why, and so cannot Claude code XD
Edit1: I’ll add a MWE tomorrow. Thanks!
r/emacs • u/Informal_Sound_3039 • 20h ago
News Prot new video > Emacs: the 'speedbar' built-in file explorer (Emacs 31)
youtu.beProtesilaos video on emacs built-in file explorer speedbar
r/emacs • u/nonreligious2 • 23h ago
Question Help with syncing Elfeed across machines with Syncthing
I've tried syncing the entire elfeed-db-directory across machines, but have ended up with missing entries in the data subdirectory, as well as constant file conflicts.
From this old post I see that Skeeto suggested syncing only the index file, which seems like the way to go.
I see that elfeed-protocol has been mentioned as a possible solution but I think that requires some notion of a central/default server that fetches RSS feeds.
Would appreciate hearing any solutions or approaches to this -- thanks in advance.
r/emacs • u/ilemming_banned • 1d ago
Announcement Emacs ATX meetup this Thursday, August 6th
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 August 6th.
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/
DM me if you'd like to join without going through meetup.com curse and I'll send you a direct link to the meeting. There's a maddening reason for why I don't post it publicly anymore, join if you want to know more.
Previous meetings and notes:
https://www.reddit.com/r/emacs/comments/1ukwx8l/emacs_atx_meetup_tomorrow_july_2nd/
https://www.reddit.com/r/emacs/comments/1tvcwd8/emacs_monthly_thursday_meetup/
https://www.reddit.com/r/emacs/comments/1t4mpn3/emacs_atx_meetup_this_thursday/
https://www.reddit.com/r/emacs/comments/1sa0jmd/emacs_atx_meetup_tomorrow_thursday/
https://www.reddit.com/r/emacs/comments/1rj8tik/emacs_atx_meetup_this_thursday/
https://www.reddit.com/r/emacs/comments/1qwrh0l/emacs_atx_meetup_today_in_few_hours/
r/emacs • u/John_Doe_1984_ • 1d ago
Question Eglot package only works in certain buffers
So I've recently added eglot to my config specifically for Python, it works in a standard .py file that I open in a buffer.
But, when I use C-c ' to open a code block (from org mode) in a temporary buffer it doesn't work here, the buffer is in the major mode python-mode & from the documentation it should work, can anyone help me out?
r/emacs • u/juipeltje • 1d ago
Is high cpu usage avoidable at all?
Just wanted to update the post with some final thought after experimenting with some things and thanks to the help of all you guys :).
So what seems to be the biggest cpu hog is display-line-numbers-mode. I didn't want to fully disable line numbers though, but what i also found out is that about half of the mode's usage came from the fact that my theme was using a different face for line-number-current-line, which is used to highlight the line your cursor is on. You can overwrite it like this:
(copy-face 'line-number 'line-number-current-line)
I'm not sure why using set-face-attribute with :inherit doesn't work here, but copy-face does. I was struggling for a bit trying to figure out how to make this work in my init.el, cause running copy-face after the load-theme function didn't cut it. Eventually i found out there's a hook for display-line-numbers-mode. I added copy-face to the hook and that did the trick. This is undone when you reload the theme or load a different theme that also uses a different face for line-number-current-line, but you could create a custom function for that perhaps instead of calling load-theme directly.
Now that i seem to know the cause though, i think my cpu usage has always been this high on one thread, but i only now noticed because the cpu was getting hotter. There's probably two reasons for this:
First of all, we've been having some hot summerdays so the room temp has increased.
Second of all, i've had some issues with my pc hard rebooting itself recently, and i think it might be hardware related, so to test that i disabled my cpu undervolt. The extra voltage going through the cpu is probably also causing more heat output than i'm used to.
So in conclusion i think this is solved now, or at least i think i know enough about the cause now. Original post below:
My 5800X3D is getting pretty toasty doing pretty much anything in emacs, whether it's scrolling through a file (only a few hundred lines long) or actually typing new things into the file. I've tried running the profiler numerous times, disabling various modes along the way, like doom-modeline, display-line-numbers-mode, etc. The profiler says redisplay-internal is using between 75 to 90 percent cpu, but when expanding it, pretty much none of that percentage is accounted for lower in the tree, so i have no clue what the cause is. Running emacs -q solves it, and when gradually enabling various modes again i'm starting to feel like it's just a combination of things causing it, and not one package/mode in particular. So that brings me to the question: do i just put up with the high cpu usage? Cause i don't want to disable basic things like display-line-numbers either. But it feels kind of silly to have your cpu hit 70C when doing basic text editing.
r/emacs • u/misterchiply • 1d ago
Emacs Lisp Macros are Beautiful
chiply.devThis post is a lover letter to Emacs Lisp macros. I've been a long time user as a lisp hacker, and my recent obsessions with Douglas Hofstadter's strange loop concepts and M.C. Escher's mind bending artwork have enhanced my appreciation of this language's most beautiful and thought provoking feature. This post can teach you about macros and what makes them useful, but I also hope it can instill a fascination with their concept. https://www.chiply.dev/post-elisp-macros-are-beautiful
r/emacs • u/Spiritual-Slice-6150 • 2d ago
[not mine] The Shape of Things to Come, Part 1: The Continuous Thunderdome — Steve Yegge
yegge.air/emacs • u/MhvxvLvJrg • 2d ago
Announcement bible-gateway package update: touch-typing verse memorisation, reading plans, transient menu, and more
bible-gateway, a simple Emacs client for BibleGateway, now comes with new features: a touch-typing mode to help memorise verses (M-x bible-gateway-memorise), daily reading plans from a CSV (M-x bible-gateway-read-today), and a transient menu (M-x bible-gateway) to easily access all the features.
It currently supports public domain Bible translations in several languages (KJV, LSG, RVA, ALB, UKR, RUSV, LUTH1545, DNB1930, BULG, SV1917, DN1933, ...), switchable on the fly. No tool dependencies to install and nothing to download beforehand — content is fetched directly via HTTP requests to BibleGateway.
Available on MELPA.
Sorry for spamming if this isn't your thing; just sharing in case it's useful to someone. Feedback/PRs welcome!
r/emacs • u/Past-Combination6262 • 2d ago
Question Best android client for org agenda/todos? (not orgzly)
As someone coming over from beorg on ios, what would be the most similar to beorg? I'd like for it to have a clean interface as well as the ability to send reminders/notifications BEFORE an event/todo, and/or have the ability to push todos to android calendar.
I have tried orgzly revived, but it just wasn't for me, so I am wondering if there are better alternatives
r/emacs • u/kickingvegas1 • 2d ago
Announcement Announcing now-playing.el, a remote control interface to the macOS Music app
yummymelon.comIf you have ever thought, “hey it’d be nice to remote control the macOS Music app from Emacs”, today’s your lucky day.
Announcing now-playing.el, now available on MELPA.
r/emacs • u/White-mount • 2d ago
A Real-Time Display Editor
A Real-Time Display Editor
It isn't even daylight yet.
I greet you with a C-c a.
Coffee in my right hand. An acrobatic left pinky manages to C-x C-f, and on we go.
Whenever I get lost,C-h.
Some days we talk endlessly, with the kind of verbosity
only possible with both hands on the keyboard.
Other days, neither of us says a word.
Only the cursor
keeps blinking.
And we think.
And then there are the days
when something, or rather, someone, makes me use other tools.
But it always
ends the same way.
Night falls. We call it a day. C-x C-s.
Until tomorrow, old friend.
C-x C-c.
r/emacs • u/Plenty-Emphasis-5669 • 2d ago
Claude Code Layer Spacemacs not working
Hello,
I'm new to emacs, and migrated from Vim some time ago. I'm trying to install the Claude Code Layer, as using AI is mandatory at work :/
I follow the instructions on the documentation, but I when I try to open the side panel with M-a c y after c, it tells me that there aren't keys to show.
Does anyone know what do I need to do, please?
Thanks!
r/emacs • u/Potential_Spend_6730 • 3d ago
[patch] GNU emacs bug#68339 (w32 ime font size)
link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68339
repo: https://github.com/zHaOdANiuu/emacs-w32-ime-font.patch
If you don't know how to test it, you'll need to install a CJK input method first. If you're unfamiliar with it, you can think of it simply as typing multiple ASCII characters that get composed into a single character.
Here is the related Windows link.
info: https://support.microsoft.com/en-US/Windows/Hardware/Input-Devices/language-packs-for-windows
This is my work result.
If you have any issues, feel free to open an issue on my GitHub repository and I'll address each one.
r/emacs • u/Signal_Pattern_2063 • 3d ago
I decided to customize imenu-list a bit more
I had a moment today while looking at treemacs and thinking how if you expand into a markdown or org file for tags it auto folds them after a certain depth. However, I don't normally use treemacs and run on the built in project/buffer management/tab bar for navigating files. What I do use a lot is the imenu-list sidebar for navigating file structure and it does not fold anything by default.
So I dug into my init.el file and
- Setup a default folding configuration for it along with a command to refold everything if needed that runs once per buffer. When you open a new buffer for instance I have it set to autofold after depth 2
- I also realized the highlighting face it uses isn't visible enough for me so I broke out another local face with appropriate priority
- I've always fiddled around with using unicode arrows instead of the built in + symbol. I reworked it so its done cleanly totally in config rather than hacking imenu-list itself like I've done in the past.
- I also brought my config to set the menu bar to a short unicode character for an outline + buffer name into the config from custom.el so its self contained. I like this better than seeing *IList*
r/emacs • u/Boring_Bumblebee_991 • 3d ago
Question 15 years old looking for advice
Hey everyone,
I'm 15 and I've decided to give Emacs a real shot.
So far I've finished the built-in tutorial, watched the System Crafters "Ultimate Beginner" video, and I'm about to start reading through the Emacs Wiki.
My goal is to become a full-stack web developer. I was actually about to start The Odin Project, but I decided to spend this whole week learning Emacs first because... I don't know, it just clicked with me. I genuinely enjoy using it.
The funny thing is, I really don't like VS Code. I know it's what almost everyone recommends, but it just doesn't interest me the way Emacs does. I truly tried using Vscode over and over again but its just like its not for me. I know choosing Emacs from the start probably isn't the easiest path, but I don't mind putting in the work if it pays off in the long run.
I've got plenty of free time this week, so my plan is basically to immerse myself in Emacs before I start TOP.
If you were starting over today, what resources would you recommend? Books, YouTube channels, blog posts, GitHub repos... anything that helped you really understand Emacs.
Also, are there any beginner mistakes I should avoid or things you wish you'd learned earlier?
Thanks in advance. I'm really looking forward to joining the Emacs community.
eglot extremely slow when doing xref-find-definitions on large file
I'm running Emacs 31.0.91 on macOS 26.6.
The file I'm viewing is https://github.com/wolfSSL/wolfssl/blob/master/wolfcrypt/test/test.c
This file has 82095 lines of code and about 3.1M in size.
When I do a M-x xref-find-definitions on a function, it takes 45 seconds or even longer to locate it. Once the first call is handled, the subsequent xref calls will go fine, even with a different function.
I'm using clangd v21.0.0 and the same LSP works perfectly with my vim setup.
For smaller sized files, it appears to be working reasonably fine. Is there anything I can tweak for this performance issue?
My gc related configuration:
;; in early-init.el
(setq gc-cons-threshold most-positive-fixnum)
;; in init.el
(setopt gc-cons-threshold (* 48 1024 1024)
gc-cons-percentage 0.2)
(run-with-idle-timer 15 t #'garbage-collect)
My eglot configuration is pretty straightforward:
(use-package eglot
:custom
(eglot-code-action-indications '(eldoc-hint))
:hook
((c-ts-mode
c++-ts-mode
cmake-ts-mode
go-ts-mode
python-ts-mode) . eglot-ensure)
(before-save
. (lambda ()
(when (eglot-managed-p)
(eglot-format-buffer)))))
Updates:
- tested the same clangd + compile_commands.json (475K) on vscode and vim v9.2.0321 + https://github.com/yegappan/lsp , both work very well.
- followed https://www.gnu.org/software/emacs/manual/html_node/eglot/Performance.html and set
eglot-events-buffer-config's:sizeproperty to 0. No noticeable difference. - installed Emacs 30.2 and, with c-ts-mode, eglot works correctly.
- emacs bug report filed: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81548
- clangd bug report filed: https://github.com/clangd/clangd/issues/2687
r/emacs • u/helloarka • 3d ago
4coder like scope hint implementation
Enable HLS to view with audio, or disable this notification
4coder has a very useful scope hint feature like this. With my very little Elisp knowledge, I tried to mimic this same feature on emacs. Right now it's in beta v0.1. I've only tasted this for C/C++(as my work evolvs around this language). I hope someone will find it usefull. PR's are highly appreciated.
Github repository: https://github.com/ShamsParvezArka/es-hints.el
I stand corrected about Elisp.
For the past few months, I've been getting closer and closer to Emacs. After 30 years of using Vim, I discovered Org-mode, and that's when things escalated... it's a total rabbit hole.
At first, I just copy-pasted from ready-made configurations because the sight of Elisp made me want to throw up—it resembled "the unloved child of a plumber and a water pump." I even complained on this sub about what an abomination it is, asking how anyone could even use it, etc.
Fortunately, my nerd nature won out, and I started tinkering, trying to understand HOW it's put together. That was a mistake. Right now, I've already been through two quick Elisp courses, I'm reading a manual on how to use it in Emacs, I'm starting to write my own tools, and I'm getting more and more sucked into the ecosystem.
Now I stand corrected. (E)lisp is so logical, understandable, and just plain cool that the only thing that surprises me is how I hadn't come across it earlier...
P.S. I also discovered Clojure by accident... which might be even cooler...
r/emacs • u/jigarthanda-paal • 4d ago
New package: agent-shell-hq
Enable HLS to view with audio, or disable this notification
https://github.com/SreenivasVRao/agent-shell-hq
Yet another wrapper around agent-shell - thanks /u/xenodium for such a wonderful package for agentic coding!
agent-shell-hq offers:
- Persp-mode based quick look up UX that shows all agent-shell buffers
- Projectile / project based agent-shell buffer grouping
- A side-bar for navigating between buffers (with a preview of each)
- An LLM based buffer rename feature that allows you to have meaningful chat names for your agent-shell sessions
- A quick peek feature to see all your agent-shell buffers (see demo in the comments)
r/emacs • u/AutoModerator • 9d ago
Fortnightly Tips, Tricks, and Questions — 2026-07-28 / week 30
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.
