How to stop Emacs falling back to rasterized Unicode characters?

后端 未结 1 1906
滥情空心
滥情空心 2021-02-15 17:00

I\'m trying to get a good Agda environment set up, but a big stumbling block is the readability of Unicode symbols in my Emacs setup.

I am on Mac OS X 10.7 with Emacs(.a

1条回答
  •  野性不改
    2021-02-15 17:17

    Adding the following to my .emacs solved the problem, based on this superuser answer:

    (if (string-equal system-type "darwin")
        (set-fontset-font "fontset-default"
                          'unicode
                          '("Monaco" . "iso10646-1")))
    

    Apparently using the ⌘-T font selection menu is not enough to change the font for all characters, but this bit of configuration seems to affect the way all Unicode characters are displayed. Much better!

    N.B.: For Agda purposes, it turns out that Menlo might be a better choice than Monaco, as Monaco seems to lack such useful characters as ∀.

    0 讨论(0)
提交回复
热议问题