70
This channel is a feed for r/emacs. @r_channels @reddit2telegram
Underappreciated Emacs built-ins: Emacs calc embedded
Hi!
My contribution to the carnival. This is a feature I love a lot, time ago, and I haven't seen any references to it.
How to read this post
* You could open it in Emacs (interactive): `M-x eww RET https://raw.githubusercontent.com/Ypot/social/refs/heads/main/org-social.org`. Optionally, you can do `M-x org-mode (`**strongly advisable**`).`
* Want to read this in Org Social? You can follow me: `#+FOLLOW: Ypot` [`https://ypot.github.io/social/org-social.org`](https://ypot.github.io/social/org-social.org), and activate org-mode: `M-x org-mode` when reading the post (**strongly advisable**`).`
* Just want it rendered in a browser? [https://github.com/Ypot/social/blob/main/org-social.org](https://github.com/Ypot/social/blob/main/org-social.org) (not interactive, not recommended).
Also in our host of the month: [https://rossabaker.com/blog/underappreciated-emacs-built-ins/](https://rossabaker.com/blog/underappreciated-emacs-built-ins/)
https://redd.it/1upaqm5
@r_emacs
Learning Vanilla Emacs from Scratch with Prot as a Neovim User
https://youtu.be/btAOBkcLEkg
https://redd.it/1uoxip0
@r_emacs
New contributors to GNU Emacs over time
https://redd.it/1uo4t5e
@r_emacs
I feel like the only reason that got me into Emacs (and org-mode) was my NPD
I'm a narc, I really struggle with it and I've been diagnosed with it a few years ago. Now it isn't always on the same level. Some days it is better, some days it is worse.
I hope this doesn't sound stupid or offensive, I don't want to offend anyone in here. But I feel like the only reason I've got into Emacs in the first place was, that as a narcissist I'm able to feel superior this way.
I'm able to look down on people for not using Emacs.
I'm able to be something better, to be somewhat better for using Emacs.
Everyone who doesn't use it isn't on my level.
Those are the lies that I've told me all the time. I'm not in it for the software itself but just as a status symbol as something people look up to. And I feel like it is the same with Arch. The narrative has always been "look at me, for being such a nerdy, cool, superior guy for using arch btw and emacs btw".
I can't talk about others, that is just my opinion and I feel like often times it is the same at school/university. People use it to be "cool".
That doesn't mean, I want to quit Emacs. It is already too late for that. I've got used to org-mode so much, I love it, I love that I'm able to control it. Maybe that's another thing that "glues" me to it. Being able to "control" it. And I really got used to Org-mode over the years.
I wish there would be a way to use org-mode or Emacs without using Emacs. As dumb as it may sound. Anyways, I'm going to try Linux Mint now, I wish I could leave Fedora behind me because I feel like I chose it for the exact same reasons. I hope to switch to something more default to something the vast majority uses.
https://redd.it/1uo1ot9
@r_emacs
How to use terminals inside emacs?
The most annoying thing for me about emacs is using terminal inside it. I'm trying doom emacs and using terminal is really annoying because keybinds goes to emacs or evil instead of shell, I have some configuration for bash like set -o vi and I can't use this inside emacs vterm.
I can't do C-p, C-n to go backword and forward in command history because emacs intercepts these key binds and so on...
I once opened vim in vterm and had to restart
So for people that uses terminal and terminal apps a lot, what do you use? How you configured this? What's your tips and tricks for terminals in emacs?
https://redd.it/1unvfkp
@r_emacs
Help me make sense of org mode
I'm trying make sense of org mode, espechially doom emacs defaults for managing notes and to-dos. I've never used anything like obsidian or others for to-dos or notes before, mainly used papers for making a simple to-do list.
I'm new to emacs, I'm used to nvim and lazyvim. I started to use doom emacs recently mainly because it has vim keybinding and the best support for bidirectional writing I've found, haven't done any configs to it. I have been exploring it, hitting space and see what different keybinds do.
I want to know how am I supposed to use org mode for to-dos, notes, journaling. Are doom defaults good enough? I don't want to do much configurations since I'm knew to emacs and lisp and haven't used any knowledge/project management tools before, so I'm not sure what's the best setup for me yet. How to get started?
I would like a simple capturing capability on the fly for to-dos or ideas that comes to my mind while working, how to set this up?
https://redd.it/1unax4s
@r_emacs
Memorize vocabulary on the go on Emacs Android
https://redd.it/1un91s6
@r_emacs
neofetch.el
https://codeberg.org/benja2998/neofetch.el
https://redd.it/1ummg76
@r_emacs
Emacs freezes during autocompletion (company/eglot)
​
Hi everyone,
I am running into an issue where emacs freezes for a few milliseconds whenever I trigger the autocompletion. The freeze feels like the completion backend or LSP is blocking the editor.
I am trying to figure out whether this is caused by:
company-mode
eglot
the language server itself (I use vala-language-server)
or something else in my configuration.
Did anyone faced this issue or does anyone have any idea how to fix it, the issue is really annoying.
https://redd.it/1uml5px
@r_emacs
Question about eshell and compilation-minor-mode
Is there a way to use "compilation-minor-mode" inside the eshell but still allow writing? Right now, every time I get errors, I activate it and then deactivate it manually, but it would be much simpler if it always let me jump to the errors. I don't know if anyone has any information on this.
https://redd.it/1um49nx
@r_emacs
Debugging Assistance
For debugging emacs, I really want a macro that would send the time, file, line number, and a message to the Message buffer. So
(debug-msg "Right here")
would give me something on the order of:
15:13:57.443 init.el:423 Right here
All of my problems are coming from that line number. Here's the macro that I'm using, but I think that line-number-at-pos is never going to give me what I want.
(defmacro debug-msg (fmt &rest args)
(let* ((file
(or (file-name-nondirectory
(or load-file-name buffer-file-name))
"Unknown"))
(line (line-number-at-pos (point))))
`(message "%s %s:%d %s"
(format-time-string "%H:%M:%S.%3N")
,file
,line
(format ,fmt ,@args))))
(The issue is that line always comes out as 1)
Assistance appreciated
https://redd.it/1ulu6pk
@r_emacs
New Prot video: Write with input method (e.g. French) and Jinx for spelling
https://youtu.be/UjCbNOqUgTs?si=5gaYvgCtHjyPwk8c
https://redd.it/1ulktr6
@r_emacs
debian stable + treesitter
Hi,
I have a debian stable and I use the emacs from the repo version 30.1.
I deployed the fsharp-ts-mode from bbatsov repo and it looks good but I got the treesitter version mismatch error.
I checked the installed treesitter with explorer mode and I got the error:
treesit-explore-mode: Cannot find tree-sitter grammar for fsharp: (version-mismatch 15)
should I build manually from the source like libtreesit ?
or I should deploy the treesit for fsharp manually with the v14 ?
how did you solve the issue like this ?
thanks in advance!
https://redd.it/1ulhhn6
@r_emacs
Helix is getting a plugin system that uses Scheme! (From an Evil-mode user perspective)
Just stumbled upon this and thought the r/emacs community would find it interesting: Helix is working on a plugin system based on Scheme!
As a dedicated Evil-mode user, I’m already a big fan of combining modal editing with the unmatched extensibility of a Lisp environment. Helix defaults to a Kakoune-style (selection-first) modal paradigm, but with this new Scheme plugin system, there is already a classic Vim emulation layer being implemented. Since that covers modal editing, maybe it's only a matter of time before someone uses Scheme to build out a full Emacs emulation layer too.
To be clear, Helix is strictly a terminal/TUI-only text editor. It obviously can't compete with the massive, unified application ecosystem of GUI Emacs (there's no native rendering for PDF view, web browsing, inline graphics, etc.).
I should note that this is all still under active development, so I'm not aware of any stable terminal plugins available to try just yet.
Here is the video covering it: https://www.youtube.com/watch?v=YDYTYktziyI
What do you all think? Anyone tempted to give it a spin once the ecosystem matures, or are we staying firmly comfy in our init.el?
https://redd.it/1ulcjxr
@r_emacs
Will using Emacs give you an edge in the AI-era?
https://www.youtube.com/watch?v=ePH3u7lmFWU
https://redd.it/1s8m35w
@r_emacs
How to configure vterm to send first ESC to bash?
I want vterm to behave as following:
- one ESC: send it to terminal, enabling vi bash mode
- two ESC: return to evil normal mode, treating vterm as normal emacs buffer again
I have vi mode enabled in bash and I would like to use it, also this would make using nvim in vterm possible.
https://redd.it/1up87dv
@r_emacs
Why does the tab key not work like other editors?
Might be just me but when i press tab, it does nothing in terms of indentation, i mostly rely on auto indenting but i still want my tab key to insert my 4 spaces (or other language specific tab config), is it possible/recommended, if yes how? Thanks c:
https://redd.it/1uos93s
@r_emacs
Abbreviations, but locally
I found this article https://www.rahuljuliato.com/posts/abbrev-mode, but I do not want to pollute my .emacs too much. Hence the question on how to make local abbreviations.
Here is my workaround (for LaTeX projects, but the idea is quite general), but please tell me if this can be achieved by some other trick buried in the Emacs' manual.
1. Create a file local-abbrevs.el with the following content for example (from one of my works):
;;; local-abbrevs.el --- Local abbreviations -*- lexical-binding: t; -*-
;;;
;;; Commentary:
;;; Abbreviations for the current project
;;;
;;; Author: indrjo
;;;
;;; Code:
(defun inline-math (expr)
"Put mathematical expression EXPR between dollars."
(format "\\(%s\\)" expr))
(defun abbrev-math (abb full)
"If outside a math env, then put expand ABB into FULL within a math env."
`(,abb
""
,(lambda () (insert (if (texmathp) full (inline-math full))))))
(defun abbrev-only-in-math (abb full)
"Expand ABB into FULL only if point is in a math env."
`(,abb
""
,(lambda () (insert (if (texmathp) full abb)))))
(define-abbrev-table 'LaTeX-mode-abbrev-table
`(;; common expressions
("fol" "first-order language")
("struc" "structure")
("mdl" "model")
;; particular symbols
,(abbrev-math "cll" "\\mathscr{L}")
,(abbrev-math "mda" "\\mathfrak{A}")
,(abbrev-math "mdb" "\\mathfrak{B}")
,(abbrev-math "mdc" "\\mathfrak{C}")
,(abbrev-math "bn" "\\mathbb{N}")
;; arrows
,(abbrev-only-in-math "not" "\\not")
,(abbrev-only-in-math "and" "\\land")
,(abbrev-only-in-math "or" "\\land")
,(abbrev-only-in-math "ra" "\\to")
,(abbrev-only-in-math "rra" "\\Rightarrow")
,(abbrev-only-in-math "aa" "\\forall")
,(abbrev-only-in-math "ee" "\\exists")
,(abbrev-only-in-math "sbs" "\\subseteq")
,(abbrev-only-in-math "sqs" "\\sqsubseteq")))
(provide 'local-abbrevs)
;;; local-abbrevs.el ends here
%%% Local Variables:
%%% ... stuff ...
%%% eval: (load-file "./local-abbrevs.el")
%%% End:
C-u C-c C-n or close and reopen Emacs (you will get a complain about security, but you can reply y or !) et voilà you can use your abbrevs.
elixir-ts-mode: Highlighting and navigation for do/end, fn/end etc. keywords?
I wonder if it's somehow possible to make elixir-ts-mode highlight do/end, fn/end etc. keywords and basically treat them like other modes treat brackets, which in many cases is what they are in Elixir. Languages that share this syntax such as Ruby, Crystal etc. are the same way.
The mode should highlight keyword siblings when point is on them. So having point on the end of a do/end pair should highlight its do, if it's nested it should highlight only the one at the matching nesting level. Bonus would be if rainbow-delimiters or some other package can somehow color each indent level differently.
ruby-mode has this feature, but neither elixir-ts-mode nor ruby-ts-mode do. Is this maybe a limitation of tree-sitter support? Will 31.0 change something here?
elixir-ts-mode is integrated into emacs now, which is great, but I don't know where to suggest new features for the mode or ask questions now that it's not separately maintained. It was suggested that I take it to the emacs-devel list, but it seems to me they have more important things to do, especially since I can't figure out where this needs to be implemented or if it's even possible with current TS support.
https://redd.it/1unvjf2
@r_emacs
Extended evil-mode tutorial?
Another recent post about an emacs version of vim golf brought to mind a related question: has anyone tried this extended vim tutorial via evil-mode?
For that matter, is there anything equivalent or even similar for 'vanilla' emacs mode?
https://redd.it/1und8iq
@r_emacs
Need help figuring out newline behaviour in doom emacs
I've been using doom emacs for a few years now. Recently I did an update and the behaviour of `newline` changed. Now, when I hit <enter> `newline` will also insert characters to continue a comment block. Specifically, what I mean is if I am in a comment block and hit <enter> `newline` will now insert a comment marker at the beginning of a new line. This is incredibly inconvenient because 80% of my comments are one line only and for the remaining cases I already had a different shortcut to do just that. I don't want the default `newline` to do it.
However, I'm having a hard time figuring out what exactly triggers this. Using `C-h k` I see that the function invoked is `newline`. Reading the documentation nothing strikes me as the obvious candidate. I have `electric-indent-mode` but that's fine - I want the indentation, I don't want the comment marker.
I tried asking an LLM to help me figure this out but it just suggests breakpoints which is not that useful if I don't know where to break.
Any ideas on what is doing this? And how I can disable it?
https://redd.it/1un9ade
@r_emacs
There is VimGolf, but is there any EmacsGolf?
if no
Any intentions to create one?
https://redd.it/1umxmtu
@r_emacs
Announcing two new experimental MELPA channels
A few days ago we have published two new MELPA channels, MELPA Snapshots and MELPA Releases. For now these channels are considered experimental and coexist with the traditional channels MELPA (“regular” a.k.a. “unstable”) and MELPA Stable. Eventually the snapshots channel is going to replace unstable, and releases is going to replace stable. But don’t worry, if you are not ready to update just yet; the new channels are still considered experimental and the current thinking is that they won’t replace the traditional channels for around another year.
After years in the making, MELPA is finally moving away from using raw timestamps as version strings for development versions. While the traditional unstable channel uses the version string format YYYYMMDD.HHMM, the new snapshots channel uses RELEASE.0.YYYYMMDD.COUNT.
See the blog post (https://emacsair.me/2026/07/03/melpa-channels/) for the whole story. (Note the bit about your very own ELPA. ;)
https://redd.it/1umm2zp
@r_emacs
Introducing graph-fa2 (browser free graph rendering)
https://redd.it/1umgze1
@r_emacs
modusregel: a simple, beautiful mode-line for Emacs
https://redd.it/1ulvnsa
@r_emacs
Major mode for interacting with Proxmox
Hi. I have only been using Emacs for a few weeks, but it feels amazing!
At first I thought there were packages for everything, but after a while I found out that perhaps not everything is covered in melpa - and maybe I need to learn elisp and write a package myself.
However, before I start learning things, I just wanted to ask if anyone else knows about a package for proxmox that I missed?
What am I looking for? A major mode for interacting with proxmox to start/stop/delete vm's in my homelab. Why? I mean.. because I don't want to leave Emacs.
https://redd.it/1ulrh8e
@r_emacs
What do you do in emacs?
I do Common Lisp development, and with SLIME in Emacs(nothing else) for more info, view my other post in r/emacs. I want to know what you guys, more experienced users, do in Emacs and have some suggestions. I am new to Emacs, and later will use it more probably.
So any suggestions, or any tips?
https://redd.it/1uljlxt
@r_emacs
ytm-radio is an Emacs-native YouTube Music player
Browse Home, Explore, Library, Search, playlists, albums, podcasts, and queue views inside Emacs; play audio through mpv/yt-dlp; control playback with transient menus; and use a short-lived Rust helper for authenticated YouTube Music features.
https://github.com/LuciusChen/ytm-radio
https://preview.redd.it/l0y6u31k5tah1.png?width=1544&format=png&auto=webp&s=407323804da02c867af0aaa866f2682d24b8a3d1
https://redd.it/1ulgiin
@r_emacs
shpaste — an Emacs client for paste.sr.ht
I put together shpaste, a small Emacs client for paste.sr.ht, SourceHut's pastebin.
Select some text (or a whole buffer), run a command, and the paste URL is already in your kill-ring. You can also browse your pastes in a tabulated-list buffer and open/copy/delete them from there. Per-paste visibility (public/unlisted/private) and self-hosted instances are supported. Built on the SourceHut GraphQL API, using plz.
Auth is via auth-source — no token variable to set.
It's not on MELPA yet (only a few weeks old); for now it installs from source with package-vc-install on Emacs 29.1+.
Write-up (with Doom setup): [https://www.bounga.org/emacs/2026/07/01/shpaste-a-paste-sr-ht-client-for-emacs/](https://www.bounga.org/emacs/2026/07/01/shpaste-a-paste-sr-ht-client-for-emacs/)
Project (source + tracker): https://sr.ht/\~bounga/shpaste
Feedback welcome!
https://redd.it/1ul1mcp
@r_emacs
Any thought for reka ? An Emacs-based window manager for river / Wayland.
Some years ago I heard about an attempt to make a wayland compositor like exwm (eww), but the progress seems unclear. I just read about reka and it seems interesting. Link : https://code.tvl.fyi/about/tools/emacs-pkgs/reka
https://redd.it/1s8gdwi
@r_emacs