All Questions
26,583
questions
0
votes
1
answer
68
views
How to set font for specified character?
I don't prefer JuliaMono font, but it provides a view of one character that I want to see in my code. It is "|" that looks like a solid vertical line in some OCaml common code situation.
I ...
0
votes
1
answer
20
views
org-mode: Bump/increase node priorities in the current buffer
Is there a way to automatically bump the priorities of all nodes in the current buffer by 1?
If that's relevant, I use digital priorities(org-priority-down/org-priority-up work fine).
It's a bit ...
0
votes
0
answers
25
views
How to clean inactive Eglot events buffers up simultaneously?
Editing multiple Eglot-enabled buffers generates several *EGLOT ... events* (Fundamental) buffers.
Even though M-x eglot-shutdown(-all) kills active events buffers being used for communications with ...
0
votes
0
answers
34
views
projectile takes up 1 GB and makes everything slow
I added projectile a while back and it makes emacs bloat up memory from 25mb to about 1.16 GB and everything becomes very slow (loding emacs, saving files, opening new files, etc).
I think it may be ...
0
votes
1
answer
25
views
Cannot get rid of isearch overlays
The following code
(defun nordlow/isearch-previous-symbol-at-point ()
(interactive)
(cond ((eq last-command 'nordlow/isearch-previous-symbol-at-point)
(isearch-repeat-backward)) ;avoid ...
0
votes
1
answer
35
views
How to make ligatures work for "Fragment Mono" font?
I use Emacs with Tuareg for writing code in OCaml.
Also, I write code in documents out of Emacs (not for compilation) and found that some fixed-pitch fonts are pretty good in visualization for some ...
0
votes
0
answers
12
views
capture day in calfw calendar and pass it to org-agenda
I am trying to capture from the calfw calendar and have the entry appear in the agenda buffer, in the same way that the emacs calendar does.
with bind c for capture it tells me that there is no cfw:...
1
vote
2
answers
57
views
How to access node property in my own export process
Given an org document, I'd like to traverse all headlines of the
given level and extract the headline title, provided that:
Headline title can be generated by inline source blocks that use node ...
1
vote
1
answer
40
views
How to send email from Emacs using smtp library and SSL with authentication?
So I first time reported a bug from Emacs and but sending emails was not working. I send the email from my email client but I would like to setup Emacs to allow sending emails. And I can't find any ...
2
votes
1
answer
50
views
How can I prevent bbdb from asking me to add emails in gnus?
How can I prevent bbdb from asking me:
"%s is not in BBDB; add? (y,!,s,u,n,q,?) "
for every mail I read?;)
What I want instead is to ignore these addresses.
I've tried:
(setq bbdb-message-...
0
votes
1
answer
31
views
Org-mode LaTeX export set AUCTeX local variables
I have an org-mode document, say
#+TITLE: My Title
* Section
My first section
and I want to export it to LaTeX with org-latex-export-to-latex.
This generates a .tex file that I can now compile.
...
0
votes
0
answers
50
views
Erratic font behavior after upgrading from 27.1 to 29.1 related to --no-x-resources
After upgrading Emacs from 27.1 to 29.1 yesterday (both compiled from source without configure settings except for --prefix) I am seeing erratic behavior of the fonts.
The issue vanishes, when I start ...
0
votes
0
answers
7
views
How can I convert nnmail-split-methods mail filtering format to Sieve format?
Any pointers to convert nnmail-split-methods to Sieve? Are there any functions in gnus, since it seems to also handle Sieve format?
I have like a few hundred lines exactly like this:
("ffmpeg-...
2
votes
1
answer
85
views
Is desktop restore expected to override --no-window-system?
When I run emacs -nw (--no-window-system) emacs (v29.1 on macOS v13.6.1) initially begins running in the terminal window, with the terminal clearing and the modeline appearing at the bottom. Quite ...
2
votes
0
answers
63
views
Stop scrolling when the last line appears
As the title states, I expect some behavior like the GIF shown below:
By contrast, here is what my Emacs does now:
It keeps scrolling even when the last line has appeared, so you can see the empty ...
0
votes
0
answers
6
views
Eglot and MS SQL
I was looking for a way to use Eglot with the MSSQL Server. I found this GitHub repo https://github.com/emacs-lsp/lsp-mssql, but this is for lsp-mode and not for Eglot.
Is there an Eglot configuration/...
0
votes
1
answer
26
views
Clocktable grouped by category instead of by file
I'd like to have a clocktable report which groups TODOs by their CATEGORY property instead of by file. As an example, this is my current clocktable report:
#+BEGIN: clocktable :scope cashpw/org-clock--...
1
vote
0
answers
13
views
Arbitrary number of fields in yasnippet
Is it possible in a yasnippet snippet to create an arbitrary number of fields following a template, stopping only once the user indicates they are done entering fields?
Example
One use case is to ...
0
votes
0
answers
27
views
org-emphasis-alist - why italic not work in org mode?
Emacs 27.1
Here my settings of org-emphasis-alist
'(org-emphasis-alist
'(("*"
(bold :foreground "deep sky blue"))
("="
(italic :foreground "...
0
votes
0
answers
38
views
How to force inheritance of the properties included from external file in OrgMode
Problem - introduction
Let's say we've got the following org file
* Headline 1 with name taken from properties - src_elisp{(org-entry-get nil "Name")}
:PROPERTIES:
:Name: J.S. Bach
:END:
**...
1
vote
2
answers
57
views
add Horizontal/Vertical Dividing Lines for the exported HTML table
For example, here's an Org file:
| A | B |
| C | D |
| A | B |
|---+---|
| C | C |
How to make the exported HTML tables look like:
A
B
C
D
More specifically, I want these dividing lines:
0
votes
1
answer
18
views
M-Tab not working with icomplete
I am currently looking into icomplete, and the manual states
‘M-<TAB>’ will select the first completion in the list, like ‘C-j’
but without exiting the minibuffer, so you can edit it further.
...
0
votes
0
answers
32
views
Dom traversal return nil even though the test condition seems to be true
The purpose of the traversal this time is to be able to visit each node, if there is a specific attribute inside that node, it should return true, add that node to the list and proceed on the next ...
0
votes
1
answer
32
views
org mode embedded LaTeX does not work for packages imported using usepackage?
I have used org mode embedded LaTeX for a while. The commonly used syntax such as subscripts, fractions and math symbols works well out of the box. All that is needed is to put the LaTeX content ...
0
votes
0
answers
18
views
Emacs 29 - Error (use-package): rg/:catch: install not supported in nil
Here my init.el
(use-package rg
:ensure t
:ensure-system-package rg)
In Emacs 27 it's work just fine.
But I removed Emacs 27.1 and installed Emacs 29.1
And now when start Emacs 29.1 I get error:
⛔...
0
votes
0
answers
57
views
Use different font for math fragments in org mode
How do I use the fixed-pitch font for math fragments in org-mode buffers? I.e., I want to use a monospace font for all strings of the form \(...\) or \[...\], where ... may include newline characters ...
0
votes
1
answer
24
views
Emacs macro variables
Does Emacs have 'macro variables'?
Midnight Commander allows the use of macro substitution expressions like %f %D %t which can be use when running commands. eg %f is the name of the current file in a ...
0
votes
1
answer
17
views
Setting `auto-save-file-name-transforms` has the wrong effect: Auto-save files are stored in Emacs config directory
Assume I have the file ~/Documents/bla.org. Now I open a buffer that visits the file ~/Documents/bla.org.
I check the value of the (buffer-local) variable buffer-auto-save-file-name, and it reads /...
0
votes
0
answers
31
views
How to keep buffers when closing only Emacs client?
I use Emacs 29.1.
When I open Emacsclient, I do it with the following command:
emacsclient -a -c --create-frame --no-wait
This is bounded to a key combination to start the Emacsclient.
To kill a ...
0
votes
0
answers
16
views
with-local-quit: do I need to set quit-flag to nil?
I have this code:
(defun my-test ()
(interactive)
(save-excursion
(let ((inhibit-quit t))
(with-local-quit
(goto-char (point-min))
(while (search-forward "foo&...
1
vote
2
answers
31
views
Closure does not capture variable
I wrote the following code, but it does not work:
(progn
(define-prefix-command 'unicode-shortcut-keymap)
(dolist (mapping '(("- >" . "→")))
(let ((keys (car mapping))
...
0
votes
1
answer
31
views
How to use eglot to set analyze path for python project?
I'm trying to use eglot on gem5, but I've noticed that I need to specify the analysis directory as src/python, and I understand that it seems to be possible to set this by setting eglot-workspace-...
0
votes
0
answers
10
views
splits the hunk in ediff mode
Is splitting the hunk in ediff mode possible?
diff-mode provides diff-split-hunk which splits the hunk at the current line. You can then apply, or reverse it with (C-u) diff-apply-hunk. Can be very ...
0
votes
0
answers
9
views
emacsformacosx and ImageMagick
I am attempting to use ImageMagick with emacsformacosx 28.2. I have just installed ImageMagick with brew. Evaluating (image-type-available-p 'imagemagick) returns nil. Much of the advice I have seen ...
0
votes
0
answers
18
views
Unknown fix for error: cl--generic-build-combined-method: Cyclic definition: %S: loadhist-unload-element
I'm using emacs 27.2 and magit version 20231109.935. When I'm inside a directory and try to run magit-status or magit-init I get the error message in the title:
cl--generic-build-combined-method: ...
0
votes
0
answers
22
views
Calculating using entry properties in Org mode clocktable
I have some entries in an Org mode file that have a property containing a lambda expression:
* Tasks
** Task 1
:PROPERTIES:
:Formula: (lambda (x) (max 20.0 (* 11.0 x)))
:END:
:LOGBOOK:
...
0
votes
0
answers
28
views
Inconsistent behavior for image animation when changing window/frame state
I've noticed that image animation produces strangely inconsistent behavior when changing window or frame state, depending on which command was most recently used to display or redisplay the image.
...
0
votes
1
answer
22
views
query-replace, add a "skip to next" in lambda function
I have this function:
(defun fix-mult-punct-before-footnote ()
"Scope: FOOTNOTE
Description: Fixes repeated/multiple punctuation before the \\footnote macro."
(interactive)
;; "..\...
1
vote
4
answers
47
views
search or occur for text with a certain face, or character properties?
I'm interested in finding zero-width spaces and similar "glyphless" characters in my buffer -- and more generally, text that's highlighted or has a certain face.
I can show zero-width spaces ...
0
votes
1
answer
19
views
Emacs highlighting as Pandoc style [closed]
Is it possible to convert the way Emacs highlights code into a Pandoc style?
0
votes
0
answers
18
views
Is there a major mode for editing xkb files?
I have a custom keyboard layout I'm often editing. This is a file stored in /usr/share/X11/xkb/symbols/, similar to the other language files there. Since none of these files have an extension Emacs ...
0
votes
0
answers
46
views
query-replace bug?
When I run query-replace* commands if I type ? I get this explanation of the function's options:
Type Space or ‘y’ to replace one match, Delete or ‘n’ to skip to next,
RET or ‘q’ to exit, Period to ...
1
vote
1
answer
35
views
Check value of local variable assigned with let/let* editing org-export functions
On my way learning emacs and doing some first steps in elisp programming, I'm trying to adapt the LaTeX output of org-export. It's a lot learning by doing and that's a good thing since it improves my ...
0
votes
1
answer
24
views
Safe way to rebind a key for only the duration of a function
I am working on some code that does keyboard macros and minibuffer recursive edits. As a result, sometimes you need to exit a macro's recursive edit before the minibuffer. This can be confusing for ...
1
vote
1
answer
21
views
Unable to disable nor shrink recentf-mode
Loading recentf (180MB) makes emacs unusable recently. Simple M-x calls take almost a minute each and everytime I see a recentf related message.
As others already asked I'm unable as well to disable ...
0
votes
0
answers
12
views
Is there a way to suggest label names in org-mode html export?
In the org-mode example below, I would like to be able to specify the label name to be used by the latex export back-end. Is there such a way?
I have a reason : To be able to mix org-style references [...
0
votes
0
answers
16
views
How to enter query-replace-regexp with key binding C-M-%, if emacs session is not stand-alone but in mate-terminal running Bash?
Title says it all. The problem: When you start emacs within a terminal running a shell, Meta and Ctrl key act in strange ways: In some regards they work, in others, however, not as it used to be ...
0
votes
0
answers
30
views
How to change font-size for a single face in a single buffer
I am trying to change the font size of a single face only within a single buffer.
Currently, the face is defined like this:
So I thought that all I need to do is evaluate
(face-remap-add-relative '...
0
votes
1
answer
37
views
easy-menu-define: how to display menu only in mode-line
I'm using easy-menu-define to diplay a menu in the mode-line on the activation of a minor-mode:
(if biblio-editing-min-mode
(easy-menu-define biblio-edit-menu biblio-editing-min-mode-map
&...
0
votes
1
answer
43
views
How to make org-agenda time-grid :LOGBOOK: entries appear in the same format as entries logged with CLOSED:
I recently made the following modification to my init.el to show :LOGBOOK: entries in the org-agenda time-grid:
(use-package org
(setq org-agenda-log-mode-items '(closed clock state)))
The only ...