All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How to call `org-sparse-tree` with tags from lisp?

I am normally pressing some keyboard shortcuts to open a sparse-tree in org-mode. I'd like to open sparse-trees from Lisp, by calling org-sparse-tree from Lisp. However, when you call it from Lisp it ...
user56834's user avatar
  • 101
1 vote
0 answers
24 views

Emacs sometimes saves buffer to wrong file

I am working with Quarto, which is based on mixing Markdown with code snippets from various languages. Hence it relies on polymode. Sometimes when I have multiple Quarto .qmd files open and want to ...
hatmatrix's user avatar
  • 1,106
1 vote
1 answer
29 views

Using font-latex-user-keyword-classes

I'd like to add a few faces that should be used to color macros and commands in LaTeX-mode. Following the documentation, I found the variable font-latex-user-keyword-classes, which is supposed to do ...
Alexander Praehauser's user avatar
0 votes
0 answers
26 views

(org mode) How to cycle through sparse trees?

I love org sparse trees, but in order to pick a sparse tree I have to press C-c / and then interact some more. I'd like to have a keyboard shortcut to cycle through sparse-tree views, the way Shift-...
user56834's user avatar
  • 101
0 votes
0 answers
27 views

How do I run my program after compilation (C/C++)

I am new to both emacs and CMake so getting the two to even compile a program in the first place was a big hurdle. But I managed to do it, and now I am wondering how I would go about making it so that ...
Grusen's user avatar
  • 3
0 votes
0 answers
5 views

lsp-solidity doesn't recognize `node_modules` dependencies

I can't seem to get the lsp server for solidity to recognize the dependencies coming from node_modules. Rough cut-out of the configuration I use for Solidity: ;; Enable Solidity mode for .sol files (...
fbielejec's user avatar
  • 101
0 votes
1 answer
40 views

How to make org-cite show all references in a bibtex file?

I am learning the new org-cite feature in orgmode for citation handling. I have a .bib file. What I need to achieve is to show the bibtex file itself (with formatting) as a HTML or docx file. That is, ...
tinlyx's user avatar
  • 1,374
0 votes
0 answers
18 views

How do I make the first sentence of each headline bold, and the rest non-bold?

I'm new to emacs and orgmode. I wonder if this is possible: if this is my headline: Plant fence: building a fence. Emacs should automatically show "Plant fence" bold but "building a ...
user56834's user avatar
  • 101
0 votes
1 answer
45 views

emacsclient cannot open web links with org-open-at-point or browse-url

emacsclient cannot open web links using neither org-open-at-point or browse-url. It does work, however, from a standalone Emacs session. I get no relevant messages in the Messages buffer, nor from ...
najjt's user avatar
  • 43
1 vote
1 answer
27 views

How to show checked list items collapsed by default in org-mode?

I'd like to - [ ] show this - expanded - [X] but keep this - collapsed - [X] collapse this as well on opening an org-mode file – is there any built-in config setting to do that?
unhammer's user avatar
  • 1,191
0 votes
0 answers
7 views

wrap echo'd messages after `my:echo-max-width`

As long as (setq message-truncate-lines nil), messages with very long lines are 'wrapped' in the echo area once they would go off-screen. The wrapping seems to behave similarly to what visual-line-...
user615536's user avatar
4 votes
1 answer
528 views

Why is Emacs recompiling some packages on every startup?

Every time I start Emacs, it creates an *Async-native-compile-log* buffer with the following contents: Compiling /usr/share/emacs/29.4/lisp/emacs-lisp/cl-loaddefs.el.gz... uncompressing cl-loaddefs.el....
mtraceur's user avatar
  • 551
1 vote
0 answers
20 views

Make show-parens-mode recognize changed syntax table

I'm using a lot of bra-ket-like notation in LaTeX-mode, meaning things like ⟨f|, so I put (modify-syntax-entry ?\⟨ "(|" LaTeX-mode-syntax-table) (modify-syntax-entry ?\⟩ ")|" LaTeX-...
Alexander Praehauser's user avatar
0 votes
0 answers
37 views

Yasnippet not working properly in Latex but works in other Modes

As the title says, when I am editing a LaTeX document I cannot do yas-expand. Note that yas-insert-snippet works fine (although also here the shortcut does not work, I have to call it using M-x 'yas-...
julian's user avatar
  • 1
0 votes
0 answers
27 views

Single quote command failed in org-cdlatex

I try to use org mode in Doom Emacs to take math notes. However, I find the single quote command sometimes doesn't work while using org-cdlatex. Whenever I try to use single quote command, emacs ...
Beginner's user avatar
1 vote
1 answer
41 views

Showing markdown code background in "boxed" mode

When reading markdown in markdown-view mode, I'd like the markdown code to be "boxed" in the sense that the code has a different background throughout the entire window width. Currently, if ...
Dov Grobgeld's user avatar
0 votes
1 answer
40 views

Shouldn't `comment-region`/`uncomment-region` preserve TABs?

As Perl isn't very smart indicating where the actual syntax error is (especially when a semicolon or a closing parenthesis is missing), I had commented larger parts of the added code, just to help ...
U. Windl's user avatar
  • 215
0 votes
1 answer
35 views

How to correctly define functions with defun inside a macro?

I have the following code (built following my previus question https://emacs.stackexchange.com/a/80426/15606): (defvar my-list '(("my-function-one" "Message 1") ("my-...
Gabriele's user avatar
  • 1,680
1 vote
2 answers
50 views

Combining comint and markdown?

I've recently started using the comint based github chat client https://github.com/chep/copilot-chat.el together with https://github.com/xenodium/chatgpt-shell . It allows a REPL like interaction with ...
Dov Grobgeld's user avatar
2 votes
2 answers
677 views

"apt install emacs" linuxmint22 requires a mail system

This seems like it must be a terrible oversight: if you sudo apt install emacs in linuxmint 22, the package brings in a kitchen sink of email systems, which in turn requires system configuration (you ...
markgalassi's user avatar
0 votes
1 answer
33 views

How to add tasks out of emacs when using org-mode as task manager

I would love to use emacs + org-mode as my task manager (currently using RTM). However, one piece that I am missing is to easily be able to add new tasks from outside emacs. Specifically, there are 3 ...
oneself's user avatar
  • 341
0 votes
0 answers
9 views

Setting correct To-address when replying to forwarded message from Outlook

Microsoft MUAs (Outlook 365?) appear to forward emails while keeping the original From: address. So if Joe forwards me an email by Jane, the email still appears as from Jane. Instead, the forwarder'...
Ketil Malde's user avatar
1 vote
1 answer
33 views

How to delete multiple org trees in a row?

I am trying to delete multiple org trees from the same buffer in a sequence: (org-map-entries (lambda () (when conditions... (org-cut-subtree)) nil nil) I get ...
lyndhurst's user avatar
0 votes
0 answers
50 views

Citar does not work with org-cite

I'm having trouble with citar in org-mode. With a simple .bib file, org-cite-insert works fine without citar, but whenever I set (org-cite-insert-processor 'citar), like explained here https://github....
kakk11's user avatar
  • 103
0 votes
0 answers
11 views

How to implement commands working only in evil-snipe mode?

Good day, I am using doom emacs on a new Mac OS. I want to implement some functions using evil-snipe and it's underlying navigation mechanism. I implemented the following repeat function: (evil-define-...
Rareform's user avatar
  • 231
0 votes
1 answer
18 views

How can I have a prefix for Magit-Blame-Read-Only minor mode?

I find that its keys interferes with org-mode speed keys Can I have a prefix somehow?
Jason Hunter's user avatar
0 votes
1 answer
41 views

Exporting Markdown in Emacs and preserving line breaks

If I export a document from Markdown to html in Emacs it does not preserve line breaks. This is typical Markdown behavior. So, Let the bird of loudest lay On the sole Arabian tree Herald sad and ...
Edman's user avatar
  • 1,229
0 votes
1 answer
31 views

Elpaca Configuration Not Cooperating

new user to GNU Emacs (installed Emacs 3 days ago). I had fun learning and configuring my Emacs experience using use-package so far. Everything was working smoothly. I decided to switch to Elpaca as ...
niceiq's user avatar
  • 11
0 votes
1 answer
43 views

Scroll Between Files Continuously in One Window

I am looking for a way to view multiple org files that are siblings in a directory, one after another, similar to the way you might scroll a feed of blog posts. For simplicity let's say I have an org ...
Shir Levkowitz's user avatar
1 vote
2 answers
201 views

dired: How to disable moving the cursor horizontally?

Is there any way to to disable moving the cursor horizontally in dired mode? For example, in this screenshot I don't want my cursor to move to y or to the file attributes. I want to keep my cursor ...
s10a's user avatar
  • 11
2 votes
0 answers
47 views

How to display function docstrings on mouse hover in *Completions* buffer

In Emacs, when I use M-x followed by typing the beginning of a function name and then press TAB, I get the *Completions* buffer showing a list of possible function candidates for completion. I would ...
Gabriele's user avatar
  • 1,680
2 votes
0 answers
38 views

Calc's implicit multiplication in Latex

I am having a problem concerning emacs "Calc" calculator. I am trying to implement a function to write math equations in latex from an input written in calc (algebraic notation). So I use ...
largelama's user avatar
1 vote
0 answers
24 views

How to pass a variable behind a quoted statement? [duplicate]

I have this code: (defun my-test (type) (org-roam-ql-nodes-files '(and (properties "TYPE" (format "%s" type))))) (my-test "wiki") It throws a type error ...
lyndhurst's user avatar
0 votes
0 answers
20 views

How to get corfu-popupinfo working with ESS[R]?

company-quickhelp provides short documentation for arguments in ESS. I read that corfu-popupinfo should be equivalent, but it doesn't seem to be working out of box. When I type in aov(for and press C-...
wdkrnls's user avatar
  • 3,727
0 votes
0 answers
20 views

How to set the height attribute of a face with a variable? [duplicate]

I mostly use Emacs on GNU/Linux Arch, and here is how I usually set fonts: (use-package cus-face :ensure nil :config (custom-set-faces '(default ((t (:family "Source Code ...
crocefisso's user avatar
  • 1,439
0 votes
1 answer
67 views

if statement depending on machine identiy

I'm working on two different computers, both Linux. PC1 is a notebook. PC2 is a machine in an office, having a fixed IP, let's say 192.168.0.35. In org mode files I'm using links to files. These links ...
Keks Dose's user avatar
  • 538
1 vote
0 answers
39 views

Finding definition in source file with a single call

Emacs configuration: eglot language-server: clangd xref-find-definitions on M-. ff-find-other-file on C-x p o xref-go-back on M-, Situation: I'm currently in a source file (let's say foo_temp.c). ...
Tietan's user avatar
  • 150
0 votes
0 answers
21 views

ispell not working with Hunspell on Doom Emacs

So, I used to use aspell, but now I want to use hunspell. I'm a Doom Emacs user, so I there might be a specific setting I need to set that I haven't set. Not sure. I have hunspell installed with a GB ...
Avi Caspe's user avatar
  • 101
0 votes
0 answers
36 views

eww filter html content before rendering based on website

after eww fetching the html content, I want to manually change the content before rendering, so I can read specific website more friendly. how to achieve that? [Sovled] thx for suggestion from @NickD ...
yuko kato's user avatar
3 votes
1 answer
77 views

How can I list all connected emacsclients?

If I have two emacsclients connected to an Emacs server, is there any way to list them? The variable server-clients displays this when an emacsclient is connected. server-clients is a variable defined ...
Jason Hunter's user avatar
0 votes
0 answers
15 views

yas-expand-snippet and yas-lookup-snippet?

I've two small snippets, where I'm trying to expand one snippet inside another. As the snippet that gets expanded is always the same one, and it's always expanded I've been trying to use yas-expand-...
Andy's user avatar
  • 21
0 votes
0 answers
20 views

Why is w3m-mode interpreting `Page Down` incorrectly in the terminal?

In the terminal, if I describe-key in any other mode than w3m-mode, it says <prior>, but in w3m-mode it says C-[ I'm not really sure how to approach this;)
Jason Hunter's user avatar
1 vote
0 answers
41 views

explanation for the unexpected completion behavior in minibuffer?

It is self-explanatory in the screenshots below. As an example, typing sgf does not show the all file names containing sgf? It only shows the candidate file name starting with sgf: Instead, typing an ...
RNA's user avatar
  • 390
2 votes
1 answer
54 views

Display invisible characters

What is the setting to hide invisible characters, but to display invisible characters in visual mode? I like to hide characters as TAB (visible-mode off). However, when highlighting text to yank, it ...
Alois Pichler's user avatar
1 vote
1 answer
41 views

Find out most recently used command (regardless of terminal input)

I previously asked this question about cycling through recently used tabs, and nobody could come up (yet) with something like I was looking for. However, I found that basically all the ingredients to ...
Alexander Praehauser's user avatar
0 votes
0 answers
9 views

Making BEFORE-STRING of overlay appear at line start no matter what

I want to create overlay labels in text that appear at the start of a line, like so: When selecting from the start of a newline, this looks good. But when I select the overlay's start to be from the ...
daedsidog's user avatar
  • 169
0 votes
1 answer
27 views

Cycle through tabs in recently used order

In Firefox one can enable the option to cycle through tabs in the order they were recently used. I'd like the same in Emacs, but all resources I found talk about cycling through buffers, which is not ...
Alexander Praehauser's user avatar
0 votes
1 answer
61 views

How can I add a link to org heading based on previous word?

Autocompletion can prompt a word used in the org mode file link. Imagine I have a heading: heading1 then, further down, possibly many pages down, I type head and I get an autocompletion prompt with ...
ruby_object's user avatar
0 votes
1 answer
19 views

Overlay BEFORE-STRING face affected by comment face

I am propertizing the before-string of an overlay with (overlay-put instruction 'before-string (propertize (concat label "\n") ; label = "REFERENCE" ...
daedsidog's user avatar
  • 169
2 votes
2 answers
60 views

What is the ctags included with Emacs?

I'm not sure I understand the ctags that comes with Emacs? Is this a totally original codebase and is not a fork of anything? Does it say anywhere what languages it supports?
Jason Hunter's user avatar

15 30 50 per page