3,782 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
38
views
advice for process-environment has no effect
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,528
0
votes
1
answer
53
views
adding a key binding to minor mode map has no effect
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,528
0
votes
0
answers
24
views
Writing elisp exwm function to switch workspaces
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'...
0
votes
2
answers
43
views
emacs lisp: symbols and keywords not interchangable in e.g. insert-button
running emacs29 on windows/cygwin, have noticed that:
(insert-button "foobar" 'help-echo "Hovering")
works just fine with "Hovering" tooltip, while
(insert-button "...
0
votes
0
answers
34
views
Is there a way to make Emacs underline only part of the text when receiving long diagnostics?
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 ...
0
votes
0
answers
31
views
Regarding buffer size warnings
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 ...
0
votes
2
answers
57
views
Can I conditionally select a special-form at the beginning of an expression?
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 ...
2
votes
0
answers
28
views
Does Emacs/Elisp provide a way to automatically add an elisp standalone program directory to load-path?
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 ...
1
vote
1
answer
63
views
Does the binary representation of a fixnum include a sign bit?
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 ...
0
votes
1
answer
76
views
How to customise delimeters for C-backwards and C-forwards in emacs
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 ...
0
votes
1
answer
66
views
How to fix C-c behaviour in emacs?
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 (...
1
vote
1
answer
72
views
How to use a function in setq with quote?
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 '(...
2
votes
1
answer
164
views
Why do Lisp style guides recommend the specific numbers of semicolons for comment in several cases?
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 ...
0
votes
1
answer
153
views
How to transpose a table after import it in an org file automatically?
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 ...
0
votes
0
answers
46
views
Can a language construct like "if" be implemented as a macro in Elisp?
Open question, didn't find any answer already online or by LLM.
The result should be something like
(if (expression) (if-true) (if-false))