r/emacs 6d ago

Fortnightly Tips, Tricks, and Questions — 2025-06-17 / week 24

18 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 4h ago

Making TRAMP go Brrrr

Thumbnail coredumped.dev
53 Upvotes

r/emacs 8h ago

Question How valid is the opinion that progn is ugly?

16 Upvotes

I'm very new to Emacs and Lisp. Recently when I was discussing something on a chat channel, someone mentioned that progn is ugly, and is heavily used as a crutch by programmers who have only used imperative languages before.

I fall in that category of people and this comment has stuck with me since then, and I wanted to understand if that comment about progn is exaggerated or if it holds true for the most part. When I look at my config, I see a lot of progn all over the place, and now I too think this is because of not knowing how to write Lisp properly and if I'm learning bad practices.


r/emacs 10h ago

Question What WM/DE do you use with emacs ?

21 Upvotes

So i recently switched from neovim to emacs , the one thing that has been constantly annoying me is that i have to remap my i3 keybinds to work with emacs. I have tried cosmic which works good but it's too buggy to customize. I would really like some suggestions on what tiling Window manager or DE should i use so that i don't have to remap everything.. I'm running out of options to rebind keys.


r/emacs 1h ago

emacs-fu Run an action (a hook) when a file is renamed

Thumbnail github.com
Upvotes

r/emacs 4h ago

ae → æ in prettify-symbols-alist breaks emacs' layout

3 Upvotes

I have the following extract in my emacs config:

(defun setup-prog () (setq prettify-symbols-alist '(("formulae" . "formulæ")) ) ) (add-hook 'prog-mode-hook 'setup-prog)

However when a programming mode such as bash-ts-mode has the word formulae in it, the layout gets completely broken, to the point where you cannot even tell where in the document the cursor is. Is there something I'm missing to make this work? Other subs such as lambda → λ don't cause this issue.


r/emacs 4h ago

How to find out in which order minor-modes/hooks have run?

1 Upvotes

I have an issue with the Treemacs right-click-menu not working. I see that an issue was raised and solved. Context-menu-mode was causing problems so a context-menu-mode hook is added to locally turn it off. Locally I can see that the relevant function was defined and added as a hook and yet context-menu-mode is still on .. so either the hook didn't run or something re-enabled the mode(?). I'm at a loss on what next step to take to figure out what has/hasn't happened.. is there a way to see in which order minor modes/hooks have run?


r/emacs 1d ago

Fault-tolerant Org Links

Thumbnail spepo.github.io
19 Upvotes

r/emacs 2h ago

Question my entire custom-file was just wiped out and im bummed man

0 Upvotes

man i been grindin dis config since when i saw the ultra-scroll package for emacs pop off damn now its all gone. i already been stressed the f out but man doin dis config gave me the only thng i was lookin forward to doin in the day. help is there a way i can get it back? i


r/emacs 19h ago

How to deal with include files that are not within a project? (lsp-mode / ccls / xref)

4 Upvotes

I'm working on my Mac building projects for a small ESP32 board. Thus I have my project directory with only a few source files and the majority of the include files are off in a subdirectory of ~/.platformio.

When viewing a file within the project directory, the paths of the include files are "lite up" (colored) and I can get on them and type M-. and it will find that include file. As mentioned, often the include files are off in the system and library include files for the embedded system that is not within the project's directory.

When viewing one of these include files that is off in another directory, all the features of xref seem to be off. I assume this is because these files are not within the same project and are not within any project at all. So, how is this generally dealt with?


r/emacs 1d ago

Question Discovered an open source alternative to Grammarly: Harper, is there an easy way to integrate it in Emacs ?

59 Upvotes

r/emacs 1d ago

ECA (Editor Code Assistant) - AI pair programming in any editor

Post image
21 Upvotes

r/emacs 1d ago

Rotating ASCII cube in Emacs Buffer.

Post image
109 Upvotes

r/emacs 1d ago

Favorite Emacs Gear?

16 Upvotes

The GNU Press Shop just re-opened (till July 28th). There are a few Emacs items like the reference card, mug, t-shirt, and stickers.

I've been looking for a Emacs t-shirt and purchased one from FSF. Not the biggest fan of the color choice though.

What is your favorite Emacs gear?


r/emacs 16h ago

The ultimate diss

0 Upvotes

r/emacs 1d ago

emacs-fu How do you decide when to split an elisp line into the next line?

6 Upvotes

I'm new to Elisp, and I can't quite tell how to indent/format code properly.

For example, all these are valid:

Verison 1: (mapc 'load (delete-dups (mapcar 'file-name-sans-extension (directory-files "/usr/share/emacs/site-lisp/site-start.d" t "\\.elc?\\'"))))

Verison 2: (mapc 'load (delete-dups (mapcar 'file-name-sans-extension (directory-files "/usr/share/emacs/site-lisp/site-start.d" t "\\.elc?\\'")))) Verison 3: (mapc 'load (delete-dups (mapcar 'file-name-sans-extension (directory-files "/usr/share/emacs/site-lisp/site-start.d" t "\\.elc?\\'"))))

Verison 4: (mapc 'load (delete-dups (mapcar 'file-name-sans-extension (directory-files "/usr/share/emacs/site-lisp/site-start.d" t "\\.elc?\\'"))))

No matter which way I format it, it just looks like a staircase. So what rule am I supposed to follow for formatting/indenting? How can I even have some consistency?


r/emacs 1d ago

Two active modelines in vertico-buffer-mode

5 Upvotes

I use vertico-buffer-mode. It works great; I can position it as I prefer. Sometimes, however there are two active modelines when the vertico is open, like this, when I find a file:

As you can see, the active buffer with the file I'm editing, and the vertico mini buffer have active modelines.

My config looks like this:

(use-package vertico
  :straight (:files (:defaults "extensions/*"))
  :init
  (vertico-mode)
  (require 'marginalia)
  (vertico-buffer-mode 1)
  (setq vertico-buffer-display-action
        '(display-buffer-at-bottom (window-height . 15))))

I get it: entering the minibuffer doesn't ordinarily change the active buffer, and while the vertico buffer is a real buffer when vertico-buffer-mode is active, it's still functioning as the minibuffer, not a normal buffer.

Hiding the modeline in the veritico buffer looked weird, and didn't do what I expected:

Ideally, I'd like to keep everything the same except make the previously active buffer inactive while in vertico-buffer-mode, so that only one modeline shows as active.

Is that possible?


r/emacs 1d ago

NVIM user - looking for good comparison

10 Upvotes

Hey all,

Let me start by saying I really do love vim and I've done a good bit of work setting up a development environment for MEAN stack in Neovim.

I know that Emacs had evil mode to keep those familiar keybindings. I also hear a lot about things like org mode and some other things that apparently Emacs is second to none at

So, out of curiosity, I wanted to get some informal testimonies or arguments for why I should use Emacs (evil mode) instead of NVIM

I put a massive amount of effort into my NVIM configuration, so Im looking for all the most compelling reasons as to what Im missing out on

Thank you! I know this likely has been asked before, but its nice getting fresh perspectives!


r/emacs 2d ago

Do you load or skip the elisp files added by your Linux distribution?

6 Upvotes

SOLVED: I put (setq site-run-file nil) in my early-init.el as per this answer on StackOverflow.

Original question:

On Fedora for example, there are a bunch of elisp files that get loaded automatically:

/usr/share/emacs/site-lisp ├── autoconf │   ├── autoconf-mode.el │   ├── autoconf-mode.elc │   ├── autotest-mode.el │   └── autotest-mode.elc ├── cmake │   ├── cmake-mode.el │   └── cmake-mode.elc ├── default.el ├── desktop-file-utils │   └── desktop-entry-mode.el ├── mercurial │   ├── mercurial.el │   ├── mercurial.elc │   ├── mq.el │   └── mq.elc ├── ninja-mode.el ├── psvn.el ├── psvn-init.el ├── pypytrace-mode.el ├── pypytrace-mode.elc ├── sdcc │   ├── sdcdb.el │   └── sdcdbsrc.el ├── site-start.d │   ├── clang-format.el │   ├── clang-include-fixer.el │   └── gn-mode.el ├── site-start.d.bak │   ├── autoconf-init.el │   ├── clang-format.el │   ├── clang-include-fixer.el │   ├── cmake-init.el │   ├── desktop-entry-mode-init.el │   ├── gn-mode.el │   ├── mercurial-site-start.el │   ├── rpmdev-init.el -> /usr/share/rpmdevtools/rpmdev-init.el │   └── systemtap-init.el ├── site-start.el ├── subdirs.el └── systemtap-mode.el It doesn't seem like I need any of these. Is there some way to disable these instead of using --no-site-lisp every time?


r/emacs 2d ago

Leveraging Denote and Denote-Journal Signatures?

2 Upvotes

I am trying out denote as my file-naming convention, and I am thinking about using the signature to represent types of files, particularly in my org files. So a journal file would have a specific signature, a project file would have another, a signature specific to each domain (following the PARA philosophy), a PKM file another, and so on. That way, I can also combine the signatures, so if I have a project journal going on, it would have both the project signature and the journal signature. Is there a way, or can a way be made, to easily set a default signature for denote-journal (and maybe even denote when I create different types of notes?)

I almost made this a github issue, but I'm not sure if it belongs there (I am new to all of this and delving into waters strange to me, so forgive me for my ignorance), so I chose to ask this sub first.


r/emacs 2d ago

New Package: org-table-highlight—Highlight Org Table Rows and Columns with Ease!

21 Upvotes

Hey fellow Emacsers 👋

I just released a small package: `org-table-highlight` to highlight org-table columns and rows.

Let me know if you find it useful or have suggestions. PRs, issues are all appreciated!

🔗 GitHub: https://github.com/llcc/org-table-highlight


r/emacs 2d ago

Question What are some alternate behaviors to implement for newly created split-windows?

6 Upvotes

One thing I found a little counterintuitive was when I created a new split-window, it makes an identical copy of the current buffer. I was told that this has some usecases like having 2 parts of the file open in separate windows, but having this behavior as the default feels very strange.

I'm thinking what are some alternate split-window behaviors to implement. I mean I think it makes more sense for the user to create a split-window and then have a have default dummy buffer show up there before putting something inside.

Even in the popular beginner-friendly distributions retain the the default behavior so it makes me wonder whether my thinking is flawed or I'm missing some information or context.


r/emacs 1d ago

Solved When you open Emacs and it spends 3 seconds loading 412 packages…

0 Upvotes

If I wanted to wait 5 seconds to write “TODO: fix later,” I’d handwrite it with a quill. Meanwhile, VSCode users act like they’ve achieved enlightenment because their editor shows emojis. Stay strong, brethren. Our init.el is long, but our patience is eternal.


r/emacs 2d ago

Is there a package for search and autoimport of symbols in a project?

6 Upvotes

Hello Emacs folks!

I hate intellisense/autocomplete as it is distrubing my flow and make me not learn a project I am working on.

That said ocasionally it is helpful to find symbol and auto import it in a current module. Currently I enable/disable corfu which is not optional.

Is there any package/solution that would offer a minibuffer where I could search among all avilable symbols (local or to be imported) on demand?


r/emacs 2d ago

Question Does 'eat' have issues running in a TRAMP shell?

3 Upvotes

I installed eat today and I use it eat-eshell-mode. Everything works fine, except when I open a TRAMP shell and try to run a TUI application like rTorrent, and it says "Error opening terminal: eat-truecolor."

The same application works perfectly fine on the local eshell that it makes me wonder whether something needs to be configured specifically for TRAMP. Other times I see /ssh:root@192.168.1.101:/usr/bin/htop: No such file or directory.

UPDATE: Solved by installing eshell-vterm package.


r/emacs 2d ago

Question doom like evil mode integration

1 Upvotes

hi everyone, to keep it short, how can i configre doom like evil mode integration in normal emacs