Newest Questions
27,898 questions
0
votes
0
answers
8
views
How to fix crashing of WSL Emacs over X?
On a Windows machine I run the MobaXterm X server system. I use this to display Emacs running on a remote Linux machine. This works fine.
I also use this X system to display Emacs running on a WSL ...
1
vote
1
answer
24
views
How to put auto-save files in another dir?
I'm editing some files in Proton Drive and it's creating tons of trash files for the auto-saves (#filename#). I'd like Emacs to put those somewhere else, not next to the file. I've been poking around, ...
0
votes
0
answers
34
views
How can I prevent rg.el from opening the first result?
Whenever it opens the first result, I often have to decline lsp to start up in that project
If I can avoid opening the first result, this would give me a zen moment.
0
votes
0
answers
21
views
Saving an Emacs Rmail email message to a file with only some of the header fields
When I output an Emacs Rmail email message to a file (using C-o) it writes all of the message headers. I only want to save the following fields:
From:
To:
Cc:
Subject:
Date:
Is there ...
-1
votes
0
answers
23
views
Wie kann Mann wiessen dass mein Foto geteilt hat [closed]
Ich bin Aqel Alizada ich möchte gar nicht mein Foto in tik Tok. Verteilt werden
0
votes
0
answers
37
views
How can I get the current directory in VTerm?
How can I get the current directory using vterm functions?
I've found this snippet, but it only returns that it's not a valid directory
(defun vterm-copy-internal-directory ()
"Copy the ...
0
votes
0
answers
49
views
Emacs doesn't use OS's keyboard layout
I am using Arch Linux with KDE Plasma (Wayland).
My keyboard layout is jp106.
After updating Emacs to the latest version, my Emacs(GUI) does not use my OS default keyboard layout(jp106), but the US ...
0
votes
0
answers
33
views
ert--activate-font-lock-keywords problem
I've had installed both Sly and SLIME to use for learning common lisp, but Sly appears to stop every time I would get an error and had to be manually restarted (which is probably configurable somehow,...
0
votes
0
answers
20
views
How to remove tags in mu4e?
How does one remove a tag from a message in mu4e?
e.g. how do I remove foo from tags in the example message below?
mu4e-message-view-example:
From: x
Subject: x
To: x
Date: Fri, 2 May 2025 01:02:01 +...
1
vote
1
answer
57
views
Change quote type inside of LaTeX environment in Doom Emacs
I am using Doom Emacs on Windows. I prepare documents in LaTeX and have AUCTeX installed. I am using the minted package and would like doom emacs to simply insert a simple double quote to denote ...
2
votes
1
answer
33
views
How do I rename a snippet?
I observe 2 fundamental-mode snippets (current-date bound to dd and current-date-and-time bound to dt) which conflict with delete-directory in emacs-lisp-mode and deftest in python-mode respectively.
...
0
votes
2
answers
36
views
Lisp error: (file-missing "Cannot open load file" "No such file or directory" "direnv")
Trying to get Emacs setup on a new install and have copied my config over to ~/.config/emacs/. Its not perfect so I have manually installed auto-compile with M-x package-install auto-compile and ...
1
vote
0
answers
29
views
eglot: Showing types of variables in the minibuffer
I'm using GNU Emacs 30.1 on GNU/Linux with standard eglot and working with C++ code using clangd 20.1.4 as the LSP server.
Up until a short while ago (a month or two maybe? Not sure) when I put point ...
1
vote
1
answer
45
views
How to document the filename of the attached file within the logbook of an org heading
I am wondering if there is a straigthforward way to document the filename of the attached file within the logbook.
For example:
Running C-c C-a on a heading asks for a file that should be moved into ...
1
vote
3
answers
227
views
Display ANSI color in the echo area
I want to run a program and display its output in the echo area (via process-lines, likely), with ANSI-color escape sequences translated into actual colors. The problem is, I can translate escape ...
1
vote
1
answer
52
views
Append .*? in isearch-forward-regexp search string by pressing TAB key
I would like to append .*? in isearch-forward-regexp search string when I press TAB key.
I have tried
;; Insert .*? on space inside isearch regexp
(define-key isearch-mode-map (kbd "<tab>&...
0
votes
1
answer
22
views
Expand a snippet with yasnippet from elisp with a named snippet?
I use evil (vim) mode and yassnippet. I want to define some snippets which "wrap" a region selected in visual mode. This means I cannot type the snippet name into the buffer before running ...
0
votes
1
answer
53
views
Consult's `find-file' behavior when typing "~"
I'm switching from counsel to consult.
counsel uses counsel-find-file. The behavior is that when I type ~, it will automatically change the prompt to the home directory:
;; Initially it shows this
...
3
votes
2
answers
107
views
How to disable backspace acting as reverse search?
To reproduce, press C-s, fill in a search string which occurs more than once in the rest of the file, then press C-s again. At this point I would expect backspace to delete the last character of the ...
2
votes
1
answer
24
views
add-advice to existent function
I want to insert a paperclip icon after the TODO of an org task when I attach a file to it.
Here is what I want to obtain:
* TODO PAPERCLIP blablabla :ATTACH: // PAPERCLIP would be the icon.
In order ...
0
votes
1
answer
47
views
how to set event spanning the whole day
I need to set on my org-mode file a free day at work. Then show it on the agenda.
How can I obtain an all-day event that I can see on the agenda (C-c a a)?
0
votes
0
answers
42
views
Any sort of sensible emacs buffer ordering
When I use emacs, I primarily move around in buffers with C-x left/right, but the problem is, when new messages pop up or something, it eventually all causes the buffers to somehow deorder in the ...
0
votes
1
answer
47
views
How do I unbind all chorded shortcuts?
I'm looking at using emacs instead of VS Code, but I'm not that interested in a learning curve for a text editor. I use very few shortcuts in my daily activities, and use a tiling window manager so ...
1
vote
1
answer
34
views
Problem with compiling latex block of code in org-babel
I would like to compile the following piece of code using pdflatex, however I keep obtaining
error that pdf wasn't produced.
#+name: circle
#+header: :results file drawer
#+header: :file circle.png
#+...
0
votes
1
answer
27
views
vertico-quick problem with mapping
My configuration is the following:
(use-package vertico-quick
:ensure `(:repo ,(concat elf-emacs-package-directory "vertico"))
:after vertico
:init
;; https://kristofferbalintona.me/...
2
votes
1
answer
65
views
How do I make macros accessible in .tex-subfiles?
I've split my .tex-file into a main.tex and several subfileX.tex (\input{subfileX}). In the main-file I've loaded some 40 packages with macros and defined 50 own macros, which aren't available with C-...
2
votes
1
answer
31
views
How do I determine which packages depend on a particular package?
I am using package-list-packages, and I have magit-popup installed.
And I see that it is a dependency.
magit-popup 20200719.1015 dependency Define prefix-infix-suffix command ...
0
votes
0
answers
19
views
Accessing Sage interpreters from Org Babel
I often use Sagemath within Org mode for my math notes, using the
ob-sagemath package. Sage can provide an interface to many underlying
interpreters, like GAP or Maxima, and I just figured out how to ...
0
votes
1
answer
28
views
use-package question: where should defvar, defconst go if setq-s move to :custom?
Trying to clean up init files using use-package. Currently, I have defvar, defconst, define, and setq under :config. If I move setq to :custom section, where should defvar, defconst, and defun go? ...
0
votes
1
answer
22
views
Is thai-pattachote input method missing characters?
I was listening to some intro videos on the Thai alphabet, and trying to type characters in Emacs. If I use M-x set-input-method and set it to thai-pattachote, I can type in Thai. Each key maps to a ...