Questions tagged [insert]
The insert tag has no summary.
77 questions
0 votes
2 answers
97 views
Using open-line with a negative argument?
When you type C-o (open-line), it opens a newline without moving the point; with a positive prefix, it opens that many newlines. I expected that you can give the command a negative argument and then ...
0 votes
0 answers
283 views
How to make all key combinations insert themselves into vterm?
I'd like to create a keymap vterm-insert-map for vterm that self-inserts all or at least all currently bound key combinations, except for one, which acts as an escape key. I can use set-transient-map ...
0 votes
1 answer
236 views
How to insert a space char when inputting a node name to `org-roam-node-find`?
When I use command org-roam-node-find and I want to create a node named Programming Languages, I can't enter the space character. Emacs seems to require the node title to be a single string without ...
6 votes
2 answers
471 views
Insert multiple minus ('-') characters using the universal argument (C-u)
I was manually creating a table in my source code's multiline comments and inserting horizontal separators using - and =. E.g. C-u C-u C-u = as expected and inserts 64 =s at the point. But - is used ...
1 vote
1 answer
55 views
insert-char completion says no matches, but inserts character anyway?
I'm using C-x 8 RET to insert a Unicode character. I enter the hex value -- for example, 201c -- and the minibuffer says "no matches". But if I just hit enter, the expected left double quote ...
0 votes
1 answer
206 views
How to replace the region text with the text of a string, without deleting and reinserting parts that are the same
In a few functions I've written logic that does the following: (defun replace-in-region (str beg end) "Replace the region between BEG & END with STR." (save-excursion (goto-char ...
0 votes
1 answer
92 views
Calling c-electric-brace programmatically
I'm currently extending the tempo.el template insertion system to be sensitive to C styles. Specifically, I want to insert braces using c-electric-brace. How programmatically insertion of braces as ...
3 votes
1 answer
907 views
How can I insert the backslash character ( \ ) before quotation marks (" ") in Emacs?
I am running Emacs and writing on the scratch-buffer. This is my config file. After executing describe-mode, this is the list of minor modes running: Enabled minor modes: Auto-Composition Auto-...