Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

I am having issues with installing ISLISP-MODE and ISLISP-REPL within Emacs, to be able to use Emacs as my editor for tinkering with Easy-ISLISP (EISL). I did follow the instructions in the two ...
haziz's user avatar
  • 13.8k
3 votes
1 answer
68 views

I Copy the following elisp code ; Source - https://stackoverflow.com/a/28991218 ; Posted by quicoju ; Retrieved 2026-02-24, License - CC BY-SA 3.0 (setq the-empty-stream nil) (defun stream-null? (s) (...
wejaeger's user avatar
1 vote
0 answers
71 views

I'm using Emacs 30.2. I made a theme loader by file extension, a theme for each extension (Languages mostly) when open files or switching buffer. It worked fine until a moment I didn't track, but I ...
Bujakiewicz Franco's user avatar
2 votes
2 answers
84 views

I've started learning Emacs and want to create a radio button widget with a value from a list as below: (require 'widget) (defconst cred-types (list "creds" "token")) (eval-when-...
nigredo's user avatar
  • 63
1 vote
0 answers
54 views

I wonder if there's any way to get checkstyle working with emacs, as solutions I have found are outdated or don't work. JDEE seems to have a way to use checkstyle, but it's an outdated package that ...
Lucy's user avatar
  • 127
1 vote
0 answers
34 views

I am trying to set up ELisp code to enable a checkstyle linter for java development with the flycheck package, but it throws an error I don't understand when running doom doctor for diagnosis. ;;;; 0 ...
Lucy's user avatar
  • 127
1 vote
1 answer
67 views

I'm using scratch Emacs without preconfigurations/frameworks. I want to disable the font-lock-warning-face for all Emacs modes, no remove its styles or make it "invisible", make the face be ...
Bujakiewicz Franco's user avatar
1 vote
1 answer
51 views

When I run the following, it works: the environment variable "TEST" is defined inside the shell. (let ((process-environment (cons "TEST=X" process-environment))) (term "/bin/...
rje's user avatar
  • 6,538
0 votes
1 answer
68 views

When I run the following code: (defun x () (interactive) (message "TEST") (define-key eglot-mode-map "C-," 'x ) in any buffer managed by eglot I would expect to be able to press C-...
rje's user avatar
  • 6,538
0 votes
0 answers
27 views

I'm trying to write elisp functions to work with exwm to switch to the next or previous workspaces and I came up with the following. They work as required with M-x, but when binding to a key, they don'...
xpusostomos's user avatar
  • 1,746
0 votes
2 answers
50 views

running emacs29 on windows/cygwin, have noticed that: (insert-button "foobar" 'help-echo "Hovering") works just fine with "Hovering" tooltip, while (insert-button "...
Vlado's user avatar
  • 1
0 votes
0 answers
44 views

In VS Code, when a diagnostic is received by the client, only tree dots appear under the first caracters of the concerned text. Is there a way to customize Emacs to do the same when it receives long ...
Abdelghani's user avatar
0 votes
0 answers
42 views

I accidentally ran an infinite loop Elisp code, and the buffer size became too large, resulting in a warning. Warning (undo): Buffer ‘foo.ass’ undo info was 24054654 bytes long. The undo info was ...
gt ykm's user avatar
  • 1
0 votes
2 answers
64 views

If I want to make a special-form conditional (making its value depend on a condition) in an expression like (FUNC ARGS) by making FUNC a conditional expression (if). I ended up trying with something ...
vmonteco's user avatar
  • 16k
2 votes
0 answers
29 views

Python automatically adds the directory of a launched program to sys.path, making other modules in the said directory's arborescence discoverable by the interpreter. Is there a similar mechanism in ...
vmonteco's user avatar
  • 16k
1 vote
1 answer
70 views

TL;DR: In Emacs Lisp, is the sign of a fixnum part of its binary representation or stored in some metadata? What's the distinction between positive and negative fixnums? Can the sign be switched in ...
vmonteco's user avatar
  • 16k
0 votes
1 answer
77 views

I am configuring emacs, and would like to fix an issue with the Control Forwards, Control Backwards, Control backspace keybinds - since I am using CUA mode, these should take me backwards and forwards ...
David Avarage's user avatar
0 votes
1 answer
95 views

I'm configuring emacs, and have run into a roadblock trying to configure C-c to be copy: ;; Copy, cut (global-unset-key (kbd "C-c")) (global-unset-key (kbd "C-x")) (global-set-key (...
David Avarage's user avatar
1 vote
1 answer
89 views

Suppose I'm setting a var like this: (setq var '((:item1 "stringA") (:item2 "stringB"))) (this works) Now I would like "stringA" be a conditional, like this: (setq var '(...
Alexander Shcheblikin's user avatar
2 votes
1 answer
177 views

I read in the style guide of Elisp and of Common Lisp to use specific numbers of semicolons in various cases, in short this: single semicolons for comments at the ends of code lines double semicolons ...
matj1's user avatar
  • 344
0 votes
1 answer
165 views

I read a table from a txt file as follows and how do I transpose it by script? It seems that org-table-transpose-table-at-point function could not be used in the script. Are there any built-in ...
cwind's user avatar
  • 442
0 votes
0 answers
47 views

Open question, didn't find any answer already online or by LLM. The result should be something like (if (expression) (if-true) (if-false))
Olle Härstedt's user avatar
0 votes
0 answers
269 views

I recently installed emacs 29.1 on my Windows machine from this repo: https://ftp.gnu.org/gnu/emacs/windows/emacs-29/ I started configuring it and the first thing I did is install evil-mode, so I can ...
Bryan Yep's user avatar
0 votes
3 answers
250 views

I want to iterate over this my-list. How to do it? (setq my-list '[((a . 1) (b . 2)) ((c . 3))]) (loop for k in my-list do (cl-loop for (i . j) in k do (message "%c %d" i j) ) I ...
Zeta's user avatar
  • 989
0 votes
1 answer
91 views

I try to generate values from the system-type like in an common Pascal function with a early return schema: { ASSUMING system_type is a global VAR } FUNCTION font_name: String BEGIN result :='...
huckfinn's user avatar
  • 697
0 votes
1 answer
61 views

I'm wanting to extract the content from LaTeX markup, modify the content, and then copy it to the clipboard. Specifically, I want to pull everything inside a \textsc{} environment and change it to ...
Threefold1520's user avatar
0 votes
1 answer
180 views

I recently started to write some elisp code, mostly to customize my spacemacs -> absolute beginner. Although there are a many different sources of "how to customize..." around, I still am ...
JJdasWIESEL's user avatar
0 votes
1 answer
78 views

I am attempting to solve exercise 5.5 of the tutorial Write an interactive function with an optional argument that tests whether its argument, a number, is greater than or equal to, or else, less ...
J. Mini's user avatar
  • 1,756
3 votes
2 answers
127 views

In both Emacs Lisp and Common Lisp, the following returns nil (let (x y z) x) yet in every Scheme that I've tried, it throws an error. Has the above been acceptable under any Scheme standard?
J. Mini's user avatar
  • 1,756
0 votes
2 answers
210 views

I’m trying to write something like this: (setq l '(nil t nil nil)) (seq-reduce 'and l t) I get this error: Invalid function: and My understanding, after a bit of googling, is that this is due to ...
Philippe-André Lorin's user avatar
0 votes
1 answer
96 views

(defun helm-do-ag (&optional basedir targets default-input) I want to call the above function with default-input, leaving basedir targets empty Do I call (helm-do-ag nil nil "something")...
eugene's user avatar
  • 42.2k
2 votes
2 answers
810 views

How can I iterate over a plist, prompt for each key a value and fill in said value into the plist? I have 'the skeleton' of a list of properties for my projects (defconst project-properties '(:...
my_display_name's user avatar
0 votes
1 answer
95 views

I am using the following the Heap Algorithm for computing permutation of words in elisp, but the permutations are not correct. The problem could be associated with the way I use the two calls to ...
Dilna's user avatar
  • 465
0 votes
2 answers
140 views

I’m trying to understand if it’s possible/good practice to write macros that expand differently depending on whether the arguments are constants or symbols. As an example (in Emacs 30.0.50): (...
neal's user avatar
  • 567
0 votes
1 answer
72 views

Is there a way to downgrade all items in the current org-mode buffer? I guess the relevant function is (org-priority-down) but I'm not sure how to apply it recursively. Unless there is a simpler way ...
Nikita Fedyashev's user avatar
0 votes
1 answer
96 views

I have the following function that displays a table in a buffer. But this handles only two columns. How can I extend this to handle an arbitrary number of columns? (defun tlprint-alist (alist &...
Dilna's user avatar
  • 465
0 votes
1 answer
102 views

I want to understand hooks in elisp. I have tematika-minor-mode which needs to be activated for emacs-lisp-mode and sh-mode. Is this the way to do it ? (defun tematika-activate () "Activate `...
Dilna's user avatar
  • 465
0 votes
1 answer
153 views

Have coded an emacs minor mode with the definition shown below. Would it be possible to simplify this, to perhaps call a function instead? Or is it not such a big deal having a minor-mode defined in ...
Dilna's user avatar
  • 465
1 vote
2 answers
415 views

I am trying to loop over a list of strings with dolist, and join element with a prefix string, using string-join from subr-x to create new string. (dolist (p '("a" "b" "c"...
e-eight's user avatar
  • 185
1 vote
1 answer
261 views

I am using 'eieio and 'cl-lib and I'm trying to define the object-print method for my class as described here: https://www.gnu.org/software/emacs/manual/html_mono/eieio.html#Basic-Methods (cl-...
gdonald's user avatar
  • 1,031
0 votes
1 answer
73 views

Using emacs-lisp I want to identify the word under point, specifically I want to be able to identify hoon runes. Runes are digraphs like ?=, /+, $-. Standard emacs lisp functions like 'thing-at-point'...
Mortimer Cladwell's user avatar
1 vote
1 answer
202 views

In Emacs 27.1, the following code gives me a (void-variable buffer) error in the callback. Are closures not supported in elisp? (defun make-callback (buffer) (lambda (status) (message "...
chris's user avatar
  • 2,533
2 votes
1 answer
192 views

Background I see the question Best way to disable code: I think something like the following would be nice: (off (global-set-key "\C-x" 'do-stuff) (defun do-stuff () ...)) I understand ...
shynur's user avatar
  • 525
4 votes
1 answer
389 views

I want to iterate and check every heading in an ORG file, and see if it's a link to an image file or not. If it is, I need to do some processing on the heading. * no_image_heading # should print ...
my_display_name's user avatar
1 vote
1 answer
77 views

It looks like the function that I use is not correctly visualizing the entire function. Currently, the function only visually highlights the region from the beginning of the function to the current ...
JongHyeon Yeo's user avatar
0 votes
1 answer
46 views

I'm trying to write a function that will set a shortcut programmatically, as in the MRE below: (defun my/shortcut-definer (keypress end-message) (interactive) (global-set-key (kbd keypress) '...
randouser's user avatar
  • 109
0 votes
1 answer
64 views

Good afternoon. The defun macro places the procedure code in the functional cell of the symbol and, if no errors are found, prints the name of the symbol in the mini-buffer. (defun InsertSsulku () &...
uanr81's user avatar
  • 459
2 votes
1 answer
207 views

Does anybody know of a project that uses Emacs-Lisp or Common-Lisp to formally encode grammars of programming languages? My special requirement is that I plan to use the representation to optionally ...
Nordlöw's user avatar
  • 12.3k
4 votes
3 answers
157 views

Let's say I define (defmacro macro-print (str) (print "hello")) and run (let ((i 0)) (while (< i 3) (macro-print i) (setq i (+ 1 i)))) The output is "hello" nil ...
Isabella's user avatar
  • 177
0 votes
0 answers
150 views

This is probably a newbie question. I'm trying to bind a keyboard macro to a key and have it available each time I load a file. I'm using lispbox. This is the code I'm trying (the macro used here is ...
Mathiuston's user avatar

1
2 3 4 5
76