Skip to main content

Questions tagged [interactive]

`interactive` spec of an Emacs-Lisp command (function invocable using `M-x` or a key binding)

1 vote
0 answers
46 views

I try to navigate in an org-mode file via babel source blocks. Unfortunately none of the ways I tried so far seem to work when triggered via evaluating a source block. They do however work when I call ...
kai-dj's user avatar
  • 449
2 votes
1 answer
273 views

According to my understanding of the post-command-hook from the documentation (https://www.gnu.org/software/emacs/manual/html_node/elisp/Command-Overview.html): the post-command-hook is executed after ...
David's user avatar
  • 177
0 votes
1 answer
77 views

I am creating an interactive command like this: emacs_value func = env->make_function(env, 0, 0, hello_world, "Returns 'hello world'", NULL); emacs_value symbol = env->intern(env, &...
Sasquatch's user avatar
1 vote
3 answers
113 views

When I grade students' essays, I frequently have to write the same comments. I would like to write an emacs function to help me reuse the most used comments in a file potential comments. The function ...
SaMeji's user avatar
  • 128
0 votes
1 answer
46 views

I have written the following function to shorten a string: (defun shorten-hash () "Shorten string (forward or backwards) to eight characters; particularly for shortening hashes" (...
Jake Ireland's user avatar
0 votes
1 answer
201 views

Consider this: (defun kill-arg-words (arg) "kill `arg' words ahead of you" (interactive) (kill-region (point) (progn (forward-word arg) (point) ))) ...
user129393192's user avatar
1 vote
1 answer
403 views

I would like to call a certain command from Emacs Lisp. This function takes two arguments plus a third optional argument. This third argument, when non-nil, doesn't ask for confirmation. I would like ...
Pablo's user avatar
  • 369
-1 votes
2 answers
74 views

I have a function to kill buffers matching a given regex: ;; Like kill-matching-buffers, but doesn't prompt every time. ;; TODO: get this to use vertico (defun kill-matching-buffers-just-do-it () &...
firstname gklsodascb's user avatar

15 30 50 per page
1
2 3 4 5
11