All Questions
26,563
questions
2
votes
1
answer
19
views
remove overlay "if any character within the overlay is changed"
I have this example function:
(defun enumerate-foo ()
(interactive)
(save-excursion
(let ((counter 0))
(goto-char (point-min))
(while (search-forward-regexp "\\<foo\\>&...
0
votes
0
answers
13
views
detangle preserve noweb
I've recently gotten into literate Programming with org-mode.
I'd like to be able to write all my functions across multiple Code Blocks, tangle them into a files but also test them from inside the org ...
0
votes
1
answer
53
views
Unicode displayed incorrectly
I recently discovered set-input-method TeX and really like it! But I noticed that certain characters are displayed incorrectly. For example, ₘ is displayed as a superscript ⊕ to me:
To reproduce:
...
0
votes
1
answer
41
views
How to set org mode to edit file when click on html file link?
The default action when click on a html file link will open it in browser.
How to config the action of click to distinct web links and disk file link, so the web link starts with http or https will be ...
0
votes
0
answers
51
views
Execute Code with Env Var Set Temporarily
Here's a piece of C++ code (its content is not important) written in an Org file:
#+BEGIN_SRC C++
#include <omp.h>
#include <iostream>
int main() {
#pragma omp parallel
std::...
0
votes
0
answers
19
views
how to export a table of contents for tagged lines only
Let's say my document has this motif:
* Heading 1 :sometag:
** Heading 1.1
*** Heading 1.1.1 :target:
* Heading 2 :target:
** Heading 2.1 :sometag:
When exporting (say, ...
0
votes
0
answers
16
views
org-mode custom agenda view with multiple lines per item?
Is it possible to create an agenda view that displays a few lines for each item? I want to get items tagged :project:, by running a search like you do with org-tags-view (the tag and maybe some other ...
0
votes
1
answer
24
views
client always pops up a msgbox before connecting
My Emacs server uses a non-localhost IP address to listen for potential TCP connections.
Each time I run emacsclientw.exe, the message box
will pop up.
Is there any way to avoid it?
0
votes
0
answers
36
views
How to bind Windows key in Emacs on FreeBSD
How do I bind the Windows key to a function in Emacs 29.1 on FreeBSD
0
votes
1
answer
20
views
pass arguments in call-process as key/value
I try to run a command which takes some arguments and requires to pass some attributes to the API.
I understand that call-process takes args as strings but any invocation complains about
wrong-type-...
0
votes
0
answers
13
views
Tramp (from straight) fails in emacs 29
After switching to fc39, emacs fails to load tramp via my use-package statement:
(straight-use-package 'use-package)
(setq straight-use-package-by-default t)
...
(use-package tramp)
The error is as ...
0
votes
0
answers
26
views
Set default face (font) with use-package ':custom-face'
What do I need to tell 'use-package' so that it will set the default font for all frames on Emacs startup?
With 'use-package' now installed as part of Emacs, I want to specify faces with its ':custom-...
1
vote
1
answer
68
views
Store and recover expansion state within org mode
I realize that this question has been asked before, many times, (How to save expansion state of org-file?, as well as org-mode: go back from sparse tree to previous visibility), but, it does seem to ...
0
votes
1
answer
14
views
emacs on wsl2 creating directories with bad/unusable permissions
Running emacs (29.1.90) in WSL2 on Windows 11. (Also tried 30.0.50, same results)
Got everything working smoothly but when emacs creates directories they are being created with the wrong permissions. ...
0
votes
0
answers
29
views
How can I start Emacs from the command line on Android?
The reason I want this, is that I need to run with --debug-init
First, I find the package name
$adb shell pm list packages |grep -i emac
package:org.gnu.emacs
Then I try to start it
$ adb shell am ...
0
votes
1
answer
32
views
How to search regex in a url-retrieve buffer?
I'm trying to implement a login system with emacs lisp, the login system has a hidden input field that's initially empty and is filled by a piece of javascript code when submitting.
I'm currently ...
0
votes
0
answers
15
views
Evil mode "o" auto indent in text mode - how to turn it off?
When I press o in evil mode (which moves the cursor to the line under, and goes into insert mode), the cursor is indented by two spaces.
When I press o, the cursor goes
here
This happens in text ...
1
vote
1
answer
38
views
update org-mode inline image after image file modified
I have a image displayed as inline image in org-mode. I would expect after the image file modified by others, emacs detect such modify and refresh the buffer to show the updated image.
How can I make ...
0
votes
1
answer
50
views
Turn off the large parentheses
I ultimately got annoyed of Calc's new displaying of parentheses
Here it's vaguely tolerable (you may however notice the presence of artifacts), but for complicated expressions the various graphical ...
0
votes
1
answer
51
views
Faster way to go from directory bookmark to file heading?
I currently have a dired bookmark set to a directory. So in order to access a particular heading, the sequence is as follows:
Bookmarks keybind, type initial letters of directory bookmark.
(Dired ...
0
votes
1
answer
38
views
How can I compute a running sum? [duplicate]
To get a running sum in column $2, row i of all entries in column $1 from the first row @1 up to and including row i,
| 1.01 | |
| 2.02 | |
| 4.04 | |
the tedious solution is to write (for three ...
2
votes
0
answers
25
views
magit search in buffer, only file names, not contents?
If I run M-x magit I see a big list of staged and unstaged file paths. I want to search through the list of file names, using my usual Emacs command of C-s (isearch-forward). But in this magit buffer ...
0
votes
1
answer
70
views
How to use tree-sitter parser for syntax highlighting?
I'm trying to setup Emacs for editing Roc (https://www.roc-lang.org/) source code. I have an LSP server for Roc and tree-sitter parser for Roc installed.
Unfortunately I failed to find tree-sitter ...
0
votes
1
answer
29
views
Ignore all headings on export
I have been using an org-contrib package (ox-extra) to exclude certain headings upon export. It works by adding an "ignore" tag to whichever heading you want to ignore, exporting the ...
0
votes
0
answers
25
views
How can I have point on today when running org-agenda?
This is a general problem I'm struggling with, but I have to begin somewhere.
This problem didn't happen before.
When I run org-agenda, point ends up on the bottom of the entries, instead of todays' ...
0
votes
0
answers
26
views
Can't remove the title bar and get transparency working at the same time
In the never-ending quest to get a clean setup, I decided to remove the title bar from my emacs using the line
(setq default-frame-alist '((undecorated . t)))
However this seems to entirely remove ...
1
vote
1
answer
33
views
How to get the starred version of a latex section on org-mode?
How do I get the starred version of a latex chapter/section from an org-mode headlight?
* my section ---> \section{my section}
??? ---> \section*{my section}
thanks
0
votes
1
answer
56
views
(Org mode) Copy to clipboard without asterisks and tags?
Do you know any "easy" way to copy to clipboard a region from an org-mode document without asterisks and tags:
* Header :tag1:
text
so it would appear in the clipboard as:
Header
text
0
votes
1
answer
28
views
How to locate the LaTeX fragment/equation that failed org-latex-preview
I used C-u C-u C-c C-x C-l (org-latex-preview) to re-generate preview images for all LaTeX fragments in a org-mode buffer. The process succeeded in most places but failed somewhere, giving this error:
...
0
votes
2
answers
40
views
Packages to move a line up and down in the text
Please don't call me lazy, but has anybody compared all the available packages that allow to move a line up or down in the text? I have found:
move-lines
move-text
move-dup
drag-stuff
Or, just, to ...
0
votes
0
answers
52
views
Why is there no line number in this debug output?
Usually, when I get a backtrace, there is a line number.
Right now, I know where to fix this problem, but I don't understand why there is no line number I can jump to;)
Debugger entered--Lisp error: (...
1
vote
1
answer
84
views
Strange behavior pushing an element into the car of a list using a function
The following is a very simple function called my-function which begins by
setting the global variable L to be the list containing nil. The next
step is to modify (car L), a.k.a. nil, by pushing ...
0
votes
0
answers
37
views
Is there a way to configure Emacs to never use a leading ~ whenever it needs to show me a path name?
In almost every situation I come across (e.g. in *BufferList*, in the pre-populated argument prefix for find-file, etc., etc.), Emacs uses a leading ~ in the paths to any files or directories under my ...
0
votes
0
answers
6
views
Tab-completion in order to access org-roam ecosystem
I'm looking to access an .org note at a specific heading, in such a way that tab completion is available. Is there any such thing? usage example: <command> microeconomics <tab-completed-...
0
votes
0
answers
21
views
Mermaid major mode not showing up after installation
I've installed mermaid-mode by using package-install and MPLA but for some reason, it's not showing up when I type it after M-x. (I get Match required). I'm running Doom Emacs. Any clue why this ...
0
votes
2
answers
39
views
How can I tweak TUI emacs to pick the last visited frame instead of last created frame after delete-frame?
When deleting current frame, Emacs always picks the last created frame to show.
How can I tweak it to pick the last visited frame?
1
vote
1
answer
20
views
How to make orgtbl-mode work within embedded LaTeX environment in org-mode itself?
I read a blog, which mentioned using orgtbl-mode to write a matrix quickly in org table format and then translated it into the LaTeX format. The post mentioned that due to the close relation between ...
0
votes
1
answer
45
views
How can I prevent truncation when using which key?
When using which key, how can I see the whole function name and prevent it from being truncated.
I've searched a bit on this and I'm just confused;). I'm not sure if this is a bug or a simple setting.
...
0
votes
1
answer
40
views
Is using if-let discouraged in emacs-lisp?
I wrote a piece of code using if-let. Later, when I tried to use my function, I got:
Symbol’s function definition is void: if-let
So I found that if-let is defined in subr-x.el and I need to use (...
0
votes
1
answer
24
views
delete-rectangle fails when called in a program
I want to remove timestamps from a server log:
2023-11-22T11:36:28: # error!
2023-11-22T16:11:36: ...
2023-11-22T16:11:36: # new error!
Manually, I select the region at the buffer start, go to the ...
0
votes
1
answer
54
views
How to replace, in a simple way, pairs of parentheses?
It would be useful for me to be able to replace, in a simple way, with simple emacs commands, parenthese pairs, like: (text text) [text text] {text text} ...
How to do it?
0
votes
1
answer
50
views
how to replace Hyperbole implicit action buttons with equivalent org-mode functionality?
I like using the Hyperbole implicit buttons as a very easy way to take actions by just doing M-RET on some text -- for example, I want to jump straight to the org-mode agenda for the day, so I put {C-...
0
votes
0
answers
8
views
How to speed up ido-use-filename-at-point 'guess on large directories
I ran into an issue of C-x C-f being very slow when guessing the filename at
point if the file at point is located in a large directory (119765 entries).
My ido configuration:
(require 'ido)
(setq ido-...
0
votes
2
answers
25
views
How to get the duration of a SCHEDULED headline in minutes
How can I get the duration of a scheduled headline in minutes? As an example, I'd expect the following heading to return 65.
* Foo
SCHEDULED: <2023-11-19 Sun 10:00-11:05>
What I've tried
org-...
0
votes
0
answers
8
views
Emacs (maybe helm?) prefers buffers that aren't visible - how to change this?
When switching buffers, emacs seems to prefer buffers that aren't already visible.
For example, normally when I'm editing and switch to another file, when I C-x b, the buffer I was last in is at the ...
2
votes
1
answer
65
views
Stop AUCTeX from automatically adding style based on filename
If I try to create a LaTeX file named notes.tex, AUCTeX automatically adds the style "notes" and runs the style hook for "notes". This creates a bunch of environments in LaTeX-...
0
votes
1
answer
25
views
How can I prevent kill-visual-line from appending kills to the kill-ring?
As described in the manual, each kill command pushes a new entry onto the kill ring. However, two or more kill commands in a row combine their text into a single entry, so that a single C-y yanks all ...
0
votes
0
answers
40
views
Minibuffer and ido keybindings with ergoemacs-mode
I'm struggling to get the same hotkeys in the latest ergoemacs-mode (as they were in ergoemacs 5.3.7):
In the M-x (execute-extended-command) command prompt I want M-i to act as previous-line-or-...
0
votes
0
answers
18
views
change location of straight.el lockfile
I'm using straight.el as a package manager in emacs and would like to make my settings and packages portable and identical over several machines
That's why I like to put the default.el file under ...
0
votes
1
answer
47
views
How add Evil keybindings to Magit, without removing all Magit prefix-keys
In magit status of a Git repository, you usually press f u to fetch from upstream (these keybindings in Magit will call magit-fetch-from-upstream).
With Magit keybindings I have noticed the letters ...