Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [self-insert-command]

The tag has no usage guidance.

0
votes
1answer
43 views

Cover the active region with a character

Called with an active region, it will replace all spaces in that region with the character corresponding to the subsequent key press. E.g., if cover-active-region is bound to C-c /, then C-c / h will ...
1
vote
1answer
59 views

eshell backtrace when trying to use character command

I have written a custom interactive command that takes a character as an argument. When I happen to use the key binding for that command while in a eshell buffer where a long-running command is ...
0
votes
1answer
192 views

How to Self Insert Tab When Editing String In go-mode?

The title contains the crux of my question. In go-mode, tabs and auto-indentation generally works well, except when I am editing strings. When inside of a string, I'd like the tab key to self-insert. ...
0
votes
1answer
128 views

Typing common keys (e.g. space, colon) gives “Symbol's function definition is void: nil”

I've recently been trying to convert my startup files to using use-package, so I've been editing my .emacs file a lot. I seem to have myself in a state where some common self-insert-command ...
4
votes
1answer
259 views

How to approximate pre-self-insert-hook (which doesn't exist)?

Q: how does one approximate the functionality of the non-existent pre-self-insert-hook? This question is inspired by the curiosity that is the combination of abbrev-mode and self-insert-command. The ...
6
votes
1answer
487 views

Mimic self-insert-command with insert/insert-char?

Due to various/extensive remappings I insert symbols with Control+key, for example Ctrl+9 inserts a left parenthesis (. This works fine with the remappings and the insert/insert-commands, however, ...
8
votes
2answers
503 views

Automatically inserting an space when inserting a character depending on the previous character

Usually after inserting punctuation marks like . , : I make an space before inserting the next character. Is it possible that Emacs automatically do this behavior? For example inserting something like ...
4
votes
4answers
331 views

writing tests for a post-self-insert-command hook

I wrote a minor mode with the purpose of modifying written text on the fly. It is currently creating a post-self-insert-command-hook, and triggers only on specific keypresses (e.g. the space bar, a ...