Hot answers tagged

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 ...
feklee's user avatar
  • 1,009
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
  • 11.9k
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,051
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 ...
JeanPierre's user avatar
  • 7,273
11 votes
Accepted

How to display Unicode UTF-8 as Unicode?

For some reason, Emacs isn't recognizing the file as UTF-8. You can force Emacs to reopen the file as UTF-8 by running the command C-x RET r (revert-buffer-with-coding-system) and entering utf-8. ...
Gilles 'SO- stop being evil''s user avatar
9 votes

How to insert invalid UTF-8 sequence

C-q 377 RET inserts the character with octal code 377 (aka LATIN SMALL LETTER Y WITH DIAERESIS). If you want to insert a byte instead of a character, you can do it with: M-: (insert (unibyte-string #...
Stefan's user avatar
  • 26k
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
8 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,426
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
  • 14.9k
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
  • 14.9k
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 ...
Tobias's user avatar
  • 32.1k
6 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 ...
Andrew Swann's user avatar
  • 3,426
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's user avatar
  • 32.3k
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,106
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
  • 4,477
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,343
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-...
rasmus's user avatar
  • 2,672
5 votes
Accepted

How to insert invalid UTF-8 sequence

After some trial and error, I managed to convert ÿ to the byte 377 using M-x recode-region, specifying that it was really in raw-text but was interpreted as latin-1. When saving the file, Emacs didn'...
legoscia's user avatar
  • 6,002
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
  • 74.6k
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

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
  • 194
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
matteol's user avatar
  • 1,823
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 ...
Aaron Miller's user avatar
4 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,138
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
  • 32.1k
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
  • 26k
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
  • 74.6k
4 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 ...
young_souvlaki's user avatar
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

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