Skip to main content
17 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 ...
feklee's user avatar
  • 1,079
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 ...
Basil's user avatar
  • 12.5k
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 ...
p_wiersig's user avatar
  • 1,081
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 ' ...
Andrew Swann's user avatar
  • 3,566
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 ...
typesanitizer's user avatar
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-...
db48x's user avatar
  • 18.4k
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 ...
aplaice's user avatar
  • 2,206
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 ...
db48x's user avatar
  • 18.4k
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'.
rpluim's user avatar
  • 5,345
6 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
matteol's user avatar
  • 2,038
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 ...
d125q's user avatar
  • 1,453
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 ...
Ista's user avatar
  • 1,188
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 (...
Drew's user avatar
  • 78k
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-...
Konrad Eisele's user avatar
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 ...
mcp's user avatar
  • 556
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-...
dualism's user avatar
  • 304
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 ...
Tobias's user avatar
  • 33.3k
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)...
Stefan's user avatar
  • 26.5k
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 ...
Aidan Schofield's user avatar
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 ...
Drew's user avatar
  • 78k
4 votes
Accepted

Compose characters

I think you want to M-x ucs-normalize-NFC-region RET
Stefan's user avatar
  • 26.5k
4 votes

How to insert mathematical symbols in emacs

I love the accepted answer, but I also wanted to point out that you can insert unicode characters by name using C-x 8 RET. This will bring up a selection list in the minibuffer that lets you type the ...
lmjohns3's user avatar
  • 283
4 votes
Accepted

Override the default font for emoji characters

You want to set use-default-font-for-symbols to nil C-h v use-default-font-for-symbols: use-default-font-for-symbols is a variable defined in `src/fontset.c'. Its value is t Probably introduced at ...
rpluim's user avatar
  • 5,345
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 ...
ghqste's user avatar
  • 51
3 votes

Greek (Unicode) in Org mode export to PDF

I figured out a basic implementation but am still interested to hear other people's takes. Assuming you are using XeLaTeX and have fontspec, polyglossia, and bidi (for right to left language support, ...
Steven Tammen's user avatar
3 votes

Unicode character display

Font names are misleading here, because when an application finds that the font it's using doesn't have a glyph for the character it's rendering, it can choose to find a different font that does. In ...
db48x's user avatar
  • 18.4k
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 ...
Steven Shaw's user avatar
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 "ä".
Erik Sjöstrand's user avatar
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-...
Tobias's user avatar
  • 33.3k
3 votes

How can I find non-displayable unicode characters in a buffer?

Robert Pluim proposed already a solution. The credit for describe-char-display belongs to him. Here I detail what I meant in my comment to his answer. I've got the impression that this solution is ...
Tobias's user avatar
  • 33.3k

Only top scored, non community-wiki answers of a minimum length are eligible