Emacs Lisp Blog Archive - Jan 2017

Posts Below
1/8/2017 - GNU Emacs: Using helm-unicode; changing the font and font size only for helm-unicode; etc.


   ▲ Top  ▼ Bottom  △ TOC
GNU Emacs: Using helm-unicode; changing the font and font size only for helm-unicode; etc.
Sunday, January 8th, 2017
23:37:45 GMT

I recently figured out that in GNU Emacs, I was using the helm-unicode extension wrong.

After installing that, I mistakenly assumed that the key sequence Ctrl-x 8 Return (or, C-x 8 RET for short) was automatically now using helm-unicode. Then I was confused that the list of Unicode characters only had names and not the actual characters.

Finally, I figured out that C-x 8 RET was only running the command (insert-char), not (helm-unicode). (To find out what command is assigned to a key sequence or keychord, you can type C-h k, then after the prompt "Describe key (or click menu item):" appears in the minibuffer, type the key, key chord or key sequence you're curious about.)

To make C-x 8 RET run (helm-unicode) instead, I had to run this command (and I also added it to my GNU Emacs preferences):

Another useful thing to add is this code to make the font larger only for helm-unicode searches. It's code I slightly modified, most of which I originally found on this page:

If you don't have the "Symbola" Unicode font, you can change "Symbola" to another font name. Or, you can download Symbola from this page:

Unicode Fonts for Ancient Scripts

Also, here's some code I found somewhere which will make GNU Emacs display Unicode in any buffer:

The problem with using that code is, it can sometimes make GNU Emacs very slow - for example, if you do the key sequence C-h h to look at the "HELLO" file included with GNU Emacs, which shows translations of the word "hello" in many different languages.

If you want to output the entire Unicode character list as browseable, editable text in a buffer, try this. A slightly modified version of code I found on this page:

I suggest pasting that code into your *scratch* buffer. Then, put your cursor (or "point" as it's called in GNU Emacs jargon) at the end of the "print-elements-of-list" function definition and do the key sequence C-x C-e.

Then, to actually output the list into whatever buffer you're running this in, put your cursor at the end of the last line and do the key sequence C-u C-x C-e.

   ▲ Top  ▼ Bottom  △ TOC