Questions tagged [self-insert-command]
The self-insert-command tag has no summary.
12 questions
5 votes
1 answer
304 views
How can I detect when emacs is dictation safe?
Longer version of question: how can I efficiently detect and indicate when emacs is dictation safe? By "dictation safe", I really mean "when can type random printable ASCII characters ...
1 vote
1 answer
48 views
Trouble aliasing ctl-x-map, C-x 8 insert command?
I'm reading the beginning of the Emacs manual on inserting text. It says you can run C-x 8 [ to insert a left single curly quote. That works. In my init.el I have this: (define-key global-map [(...
1 vote
1 answer
222 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 ...
0 votes
1 answer
345 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. ...
4 votes
1 answer
483 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 ...
8 votes
2 answers
992 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 ...