Questions tagged [insert-char]
7 questions
8
votes
1 answer
Insert character by its Unicode name
From the documentation of insert-char, I cannot see why
(insert-char "GREEK SMALL LETTER EPSILON")
doesn't work. Is there a non-interactive way to insert a character
given its Unicode name?

Toothrot
- 3,204
- 1
- 12
- 30
8
votes
3 answers
Fast unicode symbol insertion?
Currently, I'm inserting unicode characters (mainly math symbols) using TeX input method. This is cumbersome, since, for each character, I have to do following:
Switch to TeX input method pressing C-\
type latex expression like \Bbb{R} or…

Empty_Mind
- 1,341
- 12
- 27
7
votes
2 answers
Idiomatic way of extending keymap for inserting unicode symbols?
I often find myself needing to insert Unicode characters that have no default binding in iso-transl-ctl-x-8-map, i.e., characters that can't be inserted using C-x 8 followed by one or more letters/punctuation characters.
To add bindings to the C-x 8…

itsjeyd
- 14,586
- 3
- 58
- 87
2
votes
2 answers
Programmatically invoking insert-char for compatibility with unicode insertion in Linux
I'm trying to enter unicode chars in emacs in the same manner I can anywhere else in linux, with the C-S-u string shortcut.
Unfortunately, the function I've written does not work.
(defun insert-char-c (charcode)
(interactive "scharcode: ")
…

Latex_xetaL
- 168
- 1
- 7
1
vote
1 answer
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 character “ gets inserted.
OTOH, if I type "left quot" or…

Dan Drake
- 503
- 2
- 15
1
vote
1 answer
Adding unicode special characters
I wanted to add a latin capital O with circumflex [ô] to a file in emacs, but for some reason all my attempts lead to the character being replaced by a question mark ?. I tried :
M-x insert-char LATIN CAPITAL O WITH CIRCUMFLEX
M-x insert-char…

probo243
- 11
- 1
-2
votes
1 answer
function returning space
I would like to have a function that gives me spaces according to a number i multiplied by a factor f. So I end up with returning 6 spaces with (spaces 3 2).
This is to be able to indent some debugging comments in my elisp code when there are…

Dilna
- 1,173
- 3
- 10