15
votes
Accepted
unicode.txt slowness
Reading the GitHub discussion thread linked in @wvxvw’s comment, I discovered the variable inhibit-compacting-font-caches. Setting it to non-nil solves the issue:
(setq inhibit-compacting-font-caches ...
14
votes
Accepted
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.
It doesn't work because insert-char understands Unicode character names only ...
13
votes
Accepted
Exporting unicode characters to pdf using latex from org mode
You need the latex file to use \usepackage[utf8x]{inputenc} rather than the default \usepackage[utf8]{inputenc}. This works with standard (pdf)latex.
For org export to generate this you have to set ...
13
votes
Accepted
Translate ae to ä on non-German keyboard
You should be able to press C-\ (toggle-input-method) and give it german-postfix as an argument if asked (or with prefix) and then be able to type as you described.
The minibuffer will show you hints ...
9
votes
Translate ae to ä on non-German keyboard
Without switching input methods there is direct access to all the german extra characters via C-x 8 ". In particular
C-x 8 " a gives ä
C-x 8 " A gives Ä
etc. and
C-x 8 " s gives ß
Similarly C-x 8 ' ...
8
votes
Accepted
How do you enter unicode characters in Spacemacs?
This answer is written for Spacemacs 0.105.19 with default keybindings.
Since you already know that Ctrl+v might be one way to do it, you can look at the documentation to understand what it does. In ...
7
votes
Accepted
How do I customize the way Emacs prints out certain keys and key sequences?
Yes. There is a function key-description that takes a list or vector of keys and returns a string that describes them. This is used by the built-in help facilities such as describe-key and describe-...
7
votes
Inserting unicode symbol for rational numbers ℚ using TeX input method
The character set used is in the ISO 10646 encoding, which includes the following double stroked letters
C H N P Q R Z
and no others. Unfortunately the TeX input method only defines shortcuts for
...
6
votes
Fast unicode symbol insertion?
You can use abbrev-mode to create strings that "expand" to the unicode characters you want. For example, the following abbrev table defines abbrevs for the first three lowercase letters of the Greek ...

Dan♦
- 32.7k
6
votes
char-fold-search match for German eszett (ß)?
By default, this is not possible (easiest way to see this is with C-h v char-fold-table RET and searching for ß — which you won't find).
However, if you modify char-fold-table (the variable ...
6
votes
Surprising glyphs for some characters
Fonts are harder than they look, in general. If you look at the details you pasted from Emacs you'll see that it actually used Symbola, not Monospace, to render that character. Probably the Monospace ...
6
votes
Fast unicode symbol insertion?
You can define your own key sequences with the elisp functions global-set-key and local-set-key.
Thereby, it is recommended to use C-c and a single letter for user defined key sequences.
(Otherwise it ...
6
votes
Accepted
Combining diacritics not combining visually
For emacs to be able to combine successive characters, you need to be using a font that has support for both of the characters. As per the comments, in your case that was 'DejaVu Sans Mono'.
6
votes
Accepted
Way to keybind «» in Emacs
I tried the following, but apparently the quotation mark is interpreted as a macro: [...]
You’re almost there, « and » are non-ASCII characters with codes above 127, so you have to use vectors ...
5
votes
Accepted
Unicode issues in Org-mode
Emacs uses some heuristic to guess the encoding of the file. In this case it fails. No problem, just let Emacs know that the file uses UTF-8 encoding. You can do that after visiting the file with C-x ...
5
votes
Exporting unicode characters to pdf using latex from org mode
You'd just need to load proper unicode support in LaTeX via unicode-math and fontspec. Then you'd need to compile with xelatex or lualatex.
See the docstring of the following variables: org-latex-...
5
votes
Accepted
(ucs-names) in Emacs 26 is not working for "EURO SIGN"
Do this, instead, starting with Emacs 26:
(gethash "EURO SIGN" (ucs-names))
In other words, use something like this:
(if (> emacs-major-version 25)
(gethash "EURO SIGN" (ucs-names))
(cdr (...
5
votes
Accepted
Howto display unicode character \u2026 in terminal mode in emacs
I found that I missed this in my .emacs.d configuration:
;; UTF-8 support
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-...
5
votes
Accepted
How to insert mathematical symbols in emacs
You can set the insert method with M-x set-input-method RET tex. Then type \beta and watch it get converted.
It can be toggled and set with C-\!
Tested and confirmed that it compiles and renders ...
5
votes
Accepted
Why unicode 🂩 (poker card) can't be properly displayed in GUI but fine in TUI?
Sorry, I'll rewrite my answer entirely from the beginning.
Sometimes, a script is a clue to find the need font for Emacs.
You can check which script a codepoint belongs to by follwing:
(aref char-...
5
votes
Accepted
How to open a file which looks like unicode in emacs
It's a file encoded in utf-16 little endian format without the byte order mark. You have to specify the endianness selecting utf-16-le when you use revert-buffer-with-coding-system
4
votes
Accepted
How can I add Unicode 8 support to Emacs 24.3?
Names and code points used by insert-char come from the value of ucs-names, which is a (very long) alist of Unicode names and code points originating ultimately from C code. This list isn't populated ...
4
votes
Is there a way to get a Unicode character by name?
You can use insert-char for interactive usage and
(cdr (assoc-string INPUT (ucs-names) t))
for usage in elisp programs. Thereby, INPUT is the character name string, e.g.,
(setq INPUT "GREEK SMALL ...
4
votes
Accepted
Abbreviation expansion without spaces
I asked the same question recently on emacs-devel and Kenichi Handa told me I could do:
(defvar my-TeX-input-method-tweaked nil)
(defun my-quail-activate-hook ()
(when (and (not (member (quail-name)...
4
votes
Inserting the plus minus unicode symbol ± as a keyboard macro
You can get what you want with
(global-set-key (kbd "C-c m") [177])
or if you prefer
(global-set-key (kbd "C-c m") [?±])
Another solution uses the package key-chord which allows you to assign ...
4
votes
Accepted
Inserting the plus minus unicode symbol ± as a keyboard macro
With respect to why you saw what you saw:
As Eli Zaretskii said in a reply to bug report #33829, the string is interpreted as a keyboard macro, and Emacs "interprets ±, which is a single byte with ...
4
votes
Accepted
Why am i getting this "E926" character on my dashboard?
Solution:
You'll need the package "all-the-icons". Source-code: https://github.com/domtronn/all-the-icons.el
I use the 'use-package' declaration macro to install and manage my packages. Just ...
3
votes
Accepted
How do I enable agda-mode's unicode input mode across all modes in Spacemacs?
Adding the hooks to the dotspacemacs/user-config function seems work.
(defun dotspacemacs/user-config ()
"Configuration function for user code.
This function is called at the very end of Spacemacs ...
3
votes
Translate ae to ä on non-German keyboard
You could have a look at key-seq or key-chord. Both lets you bind keys pressed together to a command, so if you press "ae" at the same time, you can bind it to "ä".
3
votes
How can I save UTF-8 files with a Byte Order Mark?
Pityingly I can only give an answer to the second question "How can I fix this".
Let emacs guess the file encoding after finding the file via html-mode-hook and use it for saving the file via save-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
unicode × 133fonts × 25
character-encoding × 18
characters × 17
org-mode × 10
utf-8 × 9
latex × 7
display × 7
insert × 6
insert-char × 6
key-bindings × 5
org-export × 5
regular-expressions × 5
input-method × 5
spacemacs × 4
osx × 4
microsoft-windows × 4
search × 4
terminal-emacs × 4
text-editing × 4
replace × 4
init-file × 3
font-lock × 3
symbols × 3
math × 3