All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

List isn't considered a list within macro

(setq x 1) (defmacro dowhile (body condition) (cl-flet ((seq_eval (mylist) (cl-dolist (elt mylist result) (setq result (eval elt))))) (seq_eval body) (while condition (seq_eval body)))) (...
shintuku's user avatar
  • 107
0 votes
1 answer
32 views

Calling a function interactively without adding it to the command history

In some cases, I often run the same command, say my-common-fun, which I call subsequently with M-x M-p RET, and occasionally run another command, such as my-occasional-fun. I want to call the latter ...
miguelmorin's user avatar
  • 1,805
1 vote
1 answer
14 views

Lowering org-pomodoro sound volume

The default "bell.wav" sound file included in the org-pomodoro package that plays when an interval is concluded is much louder than other sounds on my computer. I'm trying to figure out how ...
DJ Trait's user avatar
1 vote
0 answers
10 views

treemacs error window keeps growing in size

I recently started using lsp-treemacs and I mostly like it. It would be nice if it auto-jumped to the file for the current buffer, but I can work around that. However, the biggest complaint that I ...
Troy Daniels's user avatar
1 vote
1 answer
21 views

Why does customize buffer display "[ State ]: UNKNOWN, you should not see this"?

In a package of my own, namely skel-el, I define a user option skel-el-line1 (well, ok, I'm the only one user) which can be a string, a variable (containing some string) or a function (whithout ...
Frnçs's user avatar
  • 13
0 votes
0 answers
24 views

How to implement a looped/repeated command until pressing exit

I have a question how to implement looped commands, which should repeat arbitrary many times until pressing exit (esc). Let's say I want to define a function executing avy-kill-whole-line or avy-kill-...
Rareform's user avatar
  • 311
0 votes
0 answers
7 views

Avy copy/delete partial sentence of a certain line

I have a question how to implement a command specific to avy. A template of a command which I would like to generalize is avy-kill-ring-save-whole-line. I want to be able to copy/delete from char to ...
Rareform's user avatar
  • 311
0 votes
1 answer
49 views

Why does the execution of latex/hide-show-all with hooks not work?

I'm using AUCTeX, CDlatex and latex-extra to write LaTeX-files. When I access a file I'd want the contents of its sections to be hidden by default using the latex-extra1 command latex/hide-show-all, ...
Alexander Praehauser's user avatar
0 votes
1 answer
23 views

Can I add options to dired-rsync?

I recently installed dired-rsync which is exciting, but I immediately could not figure out how to add options when using it, like -a or -u, etc. Is it possible to use such options and if so, how?
kηives's user avatar
  • 103
0 votes
2 answers
53 views

List out emojis

I am looking for a way to list out a complete "dictionary" of all the Emojis and their codes as shown here I want the text in the boxes to be searchable as they are in this overview This ...
Boof's user avatar
  • 1
0 votes
1 answer
30 views

How to print and read a list to(from) a file?

I'd like to save a (extremely minimal) database made of a lisp list and then read it back. The list will look like something as follows: (:foo "bar" :baz "foobar" :foobaz "baz&...
ygy's user avatar
  • 103
0 votes
0 answers
23 views

Get current theme's default cursor color after it's changed

How to get the current theme's default cursor color after it's modified by "set-cursor-color" of other functions that I defined? I thought I was able to get the default color value by ...
Akari's user avatar
  • 1
0 votes
0 answers
27 views

Load-file can't find a function in a loaded file

I'm using load-file to load a fork of the f.el library in a script, but a function / alias in the fork, f-presence / f-present?, isn't being recognized. This is how I'm loading the file, and the usual ...
ShadowRylander's user avatar
0 votes
1 answer
32 views

Tangling fails when using #+PROPERTY instead of manually adding header arguments when using org source blocks

The following code doesn't work, yet adding :tangle tangleobject.org manually to each source block provides us with the expected tangle result. Any clue why? #+PROPERTY: header-args :tangle ...
shintuku's user avatar
  • 107
0 votes
0 answers
35 views

How to bind the Super key in Emacs (non Windows)

Running xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }' results in 133 Super_L when pressing my Windows key (there is only one). How do I make use of ...
balanga's user avatar
  • 115
0 votes
1 answer
29 views

What steps should I take to troubleshoot use-package not loading packages

I'm using emacs 29.1 on Windows. I have extracted the emacs folder to a corporate OneDrive. I have a home folder set up with emacs-29.1\share\emacs\site-lisp\site-start.el with (setenv "HOME"...
Marek's user avatar
  • 1
0 votes
0 answers
29 views

How can I bind a prefix key to escape term-line-mode?

I've figured out how to get out of char mode, but not the other way around;) #+begin_src elisp (with-eval-after-load 'term ;Terminal Orientation ;(define-key term-raw-map (kbd "C-M-e o l"...
Jason Hunter's user avatar
0 votes
0 answers
24 views

How do I --debug-init on Android?

I'm starting Emacs like this: adb shell am start -n org.gnu.emacs/org.gnu.emacs.EmacsActivity , but run into some problems that I need to debug. If I try to pass "--debug-init" adb shell am ...
Jason Hunter's user avatar
1 vote
1 answer
30 views

Return a list of functions with a given property or creating a group of functions

I am a copy editor and I make an intensive use of custom "predicates" when I perform replacements in LaTeX code. I use, among others, this technique: ;; predicate (defun omit-comments (beg ...
Gabriele Nicolardi's user avatar
0 votes
1 answer
37 views

How to build Emacs29 with tree-sitter without sudo

Here are the commands I'm running First I install tree-sitter make PREFIX=${HOME}/.tree-sitter make PREFIX=${HOME}/.tree-sitter install This populates ~/.tree-sitter directory ├── include │   └── ...
phoxd's user avatar
  • 231
0 votes
0 answers
6 views

How to stop ispell-message in notmuch-message-mode from checking quotes and citations?

Per the documentation (`ispell-message) should ignore text from quoted mails. For example: "My interlocuter" [email protected] writes: mispeled But for some reason my emacs asks me to ...
groceryheist's user avatar
0 votes
0 answers
9 views

How can I make occur work only on visible text (e.g. org outline)?

Is there a way to do an M-x occur on only visible text, similar to how you can make isearch skip folded content with setq-local search-invisible nil? That way we could occur on for example headings of ...
unhammer's user avatar
  • 1,137
0 votes
0 answers
25 views

Any free form input methods for any calendars in Emacs?

Is there anything like the Quick Add Google Calendar feature from here, for Emacs-based or other free calendars? Basically, I would like a small program to parse unstructured English, like this: 14 ...
TachyonicBytes's user avatar
1 vote
1 answer
36 views
+50

How to disable Helm's yes/no/save dialog

I'm using Helm, but want to use the original Emacs dialog instead of Helm's version when closing an unsaved file. Turns out I prefer using the Emacs' simple y-or-n-p dialog. How do I disable Helm in ...
scaramouche's user avatar
  • 1,732
0 votes
0 answers
32 views

A script to export org with highlighted code block

I've written the script to export all of my ORG files into HTML files. It takes the files from the folder "content" and saves the results to "public". (setq user-emacs-directory &...
ANtlord's user avatar
0 votes
0 answers
15 views

Prevent ox-koma-letter.el from creating .tex files?

When running org-koma-letter-export-to-pdf on an .org file to create a .pdf file ox-koma-letter.el also creates a .tex file. Does anyone know if there is any way to prevent it (or just clean it up ...
Daniel Krajnik's user avatar
0 votes
1 answer
45 views

Running emacs in batch mode from command line doesn't work

Does anyone know if ox-koma-export.el can be invoked from command line: emacs --batch -e '(org-koma-letter-export-to-pdf)' letter.org Should emacs in general be universally reproducible from command ...
Daniel Krajnik's user avatar
0 votes
1 answer
26 views

`term` often gets filled with random character codes, any suggestion on how to fix it?

I'm running doom emacs, and here's an example of a command I ran and the resulting output. For some reason, term gets filled with these random character codes. Any suggestions on how to fix this?
shintuku's user avatar
  • 107
0 votes
0 answers
17 views

How to use a dynamic block (column view) as input to a babel function?

I am trying to use the table of an org-mode columnview dynamic block as input to a org-mode babel function. It works fine with static tables, but with the dynamic table, I get a "Reference not ...
Holger Karl's user avatar
0 votes
0 answers
36 views

Warning: void-function org-link-set-parameter [duplicate]

Anyone know why I might be getting the following warning on running emacs? I'm running org-mode 9.7 with the latest doom emacs. Warning (initialization): An error occurred while loading ‘/home/seba/....
shintuku's user avatar
  • 107
2 votes
1 answer
45 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\\>&...
Gabriele Nicolardi's user avatar
0 votes
0 answers
17 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 ...
Tomke Pfoch's user avatar
0 votes
1 answer
57 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: ...
jpb's user avatar
  • 101
0 votes
1 answer
48 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 ...
Malloc's user avatar
  • 103
1 vote
1 answer
85 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::...
shynur's user avatar
  • 4,638
0 votes
0 answers
25 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, ...
Ryan's user avatar
  • 101
0 votes
0 answers
18 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 ...
Rob N's user avatar
  • 587
0 votes
1 answer
25 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?
shynur's user avatar
  • 4,638
0 votes
0 answers
43 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
balanga's user avatar
  • 115
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-...
b10n1k's user avatar
  • 101
0 votes
1 answer
30 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 ...
Rob Kramer's user avatar
0 votes
0 answers
41 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-...
bignose's user avatar
  • 639
1 vote
1 answer
82 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 ...
B2Pi's user avatar
  • 13
0 votes
1 answer
19 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. ...
H. Dog's user avatar
  • 101
0 votes
1 answer
41 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 ...
Jason Hunter's user avatar
0 votes
1 answer
36 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 ...
ygy's user avatar
  • 103
0 votes
0 answers
16 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 ...
Vinn's user avatar
  • 283
1 vote
1 answer
49 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 ...
lucky1928's user avatar
  • 1,644
0 votes
1 answer
55 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 ...
gboffi's user avatar
  • 594
0 votes
1 answer
53 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 ...
shintuku's user avatar
  • 107

15 30 50 per page
1
2 3 4 5
532