Newest Questions
28,083 questions
0
votes
0
answers
5
views
Emacs project.el over Tramp: Inserting .gitmodules failed
When using Emacs' built-in project.el functionality with git repositories containing submodules over Tramp, there's a significant performance issue caused by repeated, unsuccessful attempts to access ....
0
votes
0
answers
16
views
Emacs freezes when trying to upgrade packages
emacs freezes when I try to package-upgrade-all - the buffers become unresponsive and the last message I see in the minibuffer is "Contacting host: elpa.nongnu.org:443" or the same but MELPA....
0
votes
0
answers
15
views
typescript-ts-mode requires manual font-lock-update call after first visiting a file
I've been using typescript-mode and tide for a long time but I wanted to try out tree-sitter and lsp-mode. I've got most things working except for one problem with syntax highlighting. When I first ...
1
vote
0
answers
16
views
How to unify documentation shown in `corfu-popupinfo` and `eldoc-box`?
I have an issue where Corfu's popupinfo and eldoc-box show different documentation for the same symbol.
corfu-popupinfo-mode shows one kind of documentation
eldoc-box shows a different one on calling ...
0
votes
0
answers
25
views
Where is documentation for /d and /l on mode indicators in mode line?
The mode line for an elisp file shows the mode as elisp/d or elisp/l, where the /d is shown in red. I now understand /d to refer to dynamic scoping and /l to refer to lexical scoping. Mouse 1 can be ...
0
votes
0
answers
8
views
Can helm-mini show buffer access times?
Is it possible to show when a buffer was accessed in a column for this command or something that is called from C-x b?;)
2
votes
1
answer
34
views
Importing contacts into emacs
I'm trying to shift to using Emacs for email. I've set up Gnus and it's working nicely for me with one thing missing, and it's a deal-breaker. I need it to autocomplete email addresses when I'm ...
0
votes
0
answers
16
views
Sort agenda items such that tasks with no repeater are above tasks with repeater
In org-agenda, I would like to have tasks without repeater listed at the top followed by tasks with repeater. Within that, the sorting can continue to be default.
org-agenda-sorting-strategy has org-...
2
votes
1
answer
44
views
How to open Org-mode ID links in an indirect narrowed buffer
By that, I mean as if I were already at the target location and had called org-tree-to-indirect-buffer.
I see that org-link-use-indirect-buffer-for-internals almost does this. However, that setting ...
3
votes
2
answers
425
views
How to replace any letter with the next in the alphabet?
It's Emacs, so I'm sure it's possible to do a query-replace-regexp that replaces any [a-zA-Z] letter with the following one in the alphabet, at least for ASCII letters. So for instance "sgd" ...
0
votes
1
answer
29
views
emacs30.2 jump to function define with treesitter
I am using emacs 30.2 with c++ treesit mode enabled. I can jump to function end with C-M-e, how can I jump to function define under current cursor?
1
vote
1
answer
13
views
helm-mini with slow tramp connections opens slowly
I'm using tramp to edit remote files, and helm-mini to switch between buffers. But having multiple remote files open with a slow SSH connection, opening helm-mini takes very long. In a backtrace I saw ...
0
votes
0
answers
33
views
Emacs: Elpy: Popup suggestions menu not displayed in ipython shell (getting suggestions in *Completions* buffer instead after pressing `TAB`)
I am using Emacs 30.1 on MacOS and have configured Elpy. The auto complete
popup is working properly in python file (for e.g. typing 'a'.l shows me below popup ).
However, when I type 'a'.l in the ...
2
votes
1
answer
23
views
Show repeater cookie in org agenda
Is it possible to show repeater cookie in org agenda?
category:Sched.99x:++99d:TODO Some task
How can I do that? org-agenda-prefix-format does not provide any direct repeater element. It talks about %...
0
votes
0
answers
11
views
customize org-appear to hide inline src block
I found this reddit post which has a config to hide the header context of a inline src block. So, using the config, inline source like src_python{return 123}, becomes {return 123}. I customized it so ...
1
vote
1
answer
109
views
Text misaligned starting at line 1000 in org file
I'm writing a really long file that it has more than 1000 lines. Somehow, starting at line 1000, all text is moved one char to the right (see how the ruler at line 1000 is misaligned in the picture ...
0
votes
0
answers
14
views
Different color for current highlighted match in evil-ex-search-forward
I'm using doom emacs, which has in-built configuration to search for text in buffers with key binding / (evil-ex-search-forward). Once I search, I can hit RET and use either n or S-n to cycle through ...
0
votes
1
answer
32
views
Different begin/end line color for org source code block based on language
I know that we can customize org source block begin and end line colors using below config
(custom-set-faces!
;; Customize the header line of the source block
'(org-block-begin-line :background &...
0
votes
0
answers
25
views
Spacemacs - Setting a variable only works after refresh
Every time I start up spacemacs, some variables are not defined. I get:
"Symbols function definition is void: nil"
However, when I refresh the configuration (SPC f e R), everything works ...
0
votes
0
answers
37
views
Unicode commands in shell
I am using Emacs 31.0.50 in Windows. I have a shell command string which includes some unicode characters in its arguments. I can run this command in Windows command prompt without any problems. But I ...
0
votes
0
answers
36
views
org mode latex export - issue with newline in lists
When I do an export to latex from org mode lists are treated as follows:
a list item that has text has a newline (\\ in the tex file) at the end of that item if there is any text for that item. If ...
3
votes
0
answers
30
views
Project variable, function, macro checker
Is there an Emacs tool that show the dependencies for every file from a project?
I have undeclared errors at an Emacs project. If the variable or the function/macro into file is not declare yet, Emacs ...
0
votes
1
answer
40
views
disable view-read-only for some major modes
The view-read-only variable, when set, ensures view-mode is
enabled on all read-only buffers, which I find generally good. But
sometimes, the major mode already has similar functionality, so I'd
...
0
votes
0
answers
23
views
Further alignment than the one provided by align-current?
Suppose the following lines (AUCTeX mode active):
\documentclass{article}
\begin{document}
\begin{tabular}{lrr}
Foo & 42.00 & 242.50 \\
Foo bar & 3242.00 & 10.50 \\
\end{tabular}
\...
0
votes
0
answers
12
views
treemacs file tree, set zig icon
in my treemacs file tree, i see icons for .c,.cpp,.rust, but not zig. So i downloaded the zig png, put it under
~/.emacs.d/icons/zig.png
and updated my treemacs config to this
(use-package lsp-...
0
votes
0
answers
24
views
How to change the facecolor of org-mode emphasis markers?
For example, visually, some code actually has two ~, left and right, they are there occupying the space, but invisible to eyes.
Taking one step further, can we customize the width of the two ...
1
vote
0
answers
37
views
Org export: Conflict of keywords COMMENT and INCLUDE
I have a file test.org that includes files a.org and b.org:
test.org:
#+include: a.org
#+include: b.org
a.org:
* AAA
* COMMENT BBB
b.org:
* CCC
* DDD
When I export test.org the only section that is ...
0
votes
2
answers
46
views
How to check if the current buffer supports "strings" via the syntax-ppss?
When writing utilities that operate on "strings", the syntax-table can be used along with the parse state (syntax-ppss), however some major modes (such as text-mode) won't treat quoted text ...
0
votes
1
answer
25
views
How to ignore the line break between two consecutive links
The two inline images are supposed to be on the same line, but I want the image path on separate lines because the path is too long.
#+ATTR_ORG: :width 300
[[/this/is/a/very/long/file/path/to/an/...
1
vote
1
answer
59
views
Given a symbol defined with a defcustom form, how to programmatically identify its group(s)?
How to identify the parent group(s) of a symbol defined with a defcustom form with elisp code?
For instance I would like to use or write a function custom-group-of such that
(custom-group-of 'delete-...
2
votes
1
answer
124
views
Magit broken with message: transient-setup: Symbol’s value as variable is void: $
I get this message after updating packages. How can I fix it?
I load my file, then press C-g, and it shows Recent commits. After pressing any usual key, I get the message with the error, and magit ...
3
votes
0
answers
55
views
Package loading broke suddenly
Today, all of a sudden (possibly because of a system Emacs version update to 30.1?), loading packages broke for me. Specifically, my .emacs looks like this:
(require 'package)
(setq package-user-dir &...
1
vote
1
answer
123
views
PDF Tools not working
I have Emacs 30.2 installed on MacBook Pro (Mac Monterey Version 12.7.6). I cannot make pdf-tools to work. Please see my .emacs file:
**** .emacs file ****************
;; Initialize package sources
(...
1
vote
1
answer
86
views
Automatically adding Signed-off-by trailers to Git commits
I occasionally write Git commits for a project that requires all commits to carry a Signed-off-by trailer, to signal compliance with the Developer Certificate of Origin.
I frequently forget to add ...
0
votes
0
answers
22
views
Tramp is creating remote directories named '~'
I am using emacs/tramp for years to edit remote files in RHEL servers without any issue.
I noticed that for some time, tramp is creating relative ~ directories for every remote file that I am editing.
...
0
votes
0
answers
29
views
ediff: Window is dedicated to Ediff Control Panel
In ediff-mode, the help says that hitting R will display the session registry.
But when I do, it shows an error message instead,
stating Window is dedicated to Ediff Control Panel.
Showing the ...
1
vote
1
answer
81
views
define insert key with `kbd`
I am trying to remap the "insert" key. describe-key tells me it is called <insert>.
However, this is not a valid key description, eg (key-valid-p (kbd "<insert>")) is ...
0
votes
0
answers
4
views
access server-buffer-clients from mode hook, or access current server process from lisp code
How can I access, from a mode's hook, the client process(es) that is/are visiting the buffer the mode is being set on?
Outside of the context of a hook, I can just access the buffer-local variable ...
1
vote
1
answer
29
views
Different bibliographies for different sections using org-cite?
I would like to write a document containing a table of contents and multiple short texts with their own citations. I'm currently using org-cite and org-export to ODT in Emacs 30.1.
A minimal example ...
1
vote
1
answer
112
views
Eglot + Corfu + Cape + Yasnippet integration in Emacs - snippet completions not showing with LSP
I’m trying to set up Emacs 30.2 with the following packages:
Eglot (built-in) for LSP
Corfu for completion UI
Cape for multiple completion sources
Yasnippet for snippets
Eldoc + Eldoc-box for hover ...
1
vote
1
answer
66
views
RefTeX label insertion in exam class after parts
I'm using reftex-label with C-c ( to insert labels via RefTeX into documents that use the exam class in LaTeX. This is mostly been working smoothly, except for when I use the parts environment within ...
1
vote
1
answer
47
views
`consult-find' searches from HOME in non-project directories instead of the current directory
I am trying to fuzzy find files in the current working directory and open them.
I came across consult-find for which the documentation on GitHub says the default behavior
should
Search in root ...
0
votes
0
answers
15
views
Matches in ivy-occur open in a wrong window
The issue
I use counsel-rg, get a list of search matches, open ivy-occur from it with C-c C-o. Then I press n or p (next/previous-error-no-select command) to open the location of a match.
The match ...
0
votes
0
answers
12
views
Why does `helm-org-ql' case-insensitive search not match capitalized headings?
Body:
I'm using helm-org-ql (via org-super-links) to search for org headings, but when I type "porting" in lowercase, it doesn't match headings that start with "Porting" (...
2
votes
1
answer
39
views
How to configure org-capture to not add canceled capture text to kill-ring?
I'd like my kill ring to remain unaffected when I kill an org-capture invocation.
put a URL in my OS clipboard (and thus kill ring)
org-capture and start to create a bookmarks entry
cancel org-...
3
votes
1
answer
39
views
Flyspell (prog mode) add accepted words by underlying prog-mode
Is there a way to add a list of "accepted" words for each underlying prog-mode.
By "accepted" I mean - I don't want them added to my dictionary - I just don't want them highlighted....
1
vote
0
answers
16
views
Set `evil-jump` jump point on buffer change
I am using evil-jump. I would like to add a jump to the jump table of the current window whenever I display a new buffer in that window. How can I do that? In particular, I need this functionality in ...
1
vote
1
answer
33
views
Customizing tab-line-mode to always show all files
I've been trying to customize the new tab-line-mode lately, and while making my custom function to always display all file buffers on the tab line, I've figured out that the sorting of the buffers is ...
1
vote
0
answers
25
views
Trouble getting system clipboard to work in Evil/Org on Wayland Fedora 42
I’m a beginner Emacs user and I’m running into a frustrating issue with clipboard integration on Wayland (KDE, Fedora 42). I’m using pgtk Emacs (so GUI/Wayland support is available) and Evil mode. ...
1
vote
0
answers
40
views
ShellCheck warnings like "Command appears to be unreachable" are not shown on the status line
I am using Flycheck to ShellCheck Bash scripts. I have a problem with this kind of ShellCheck warning:
note: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). [SC2317]
...