emacsclient, disable prettify-symbols-mode in terminal?

216 Views Asked by At

I am trying to disable prettify-symbols-mode when I use emacs in the terminal. The reason is that unicode support in the terminal is not as good as in the GUI mode. So it causes a problem with editing my R scripts.

Here is what I came up with to put in my emacs config:

(add-hook 'after-make-frame-functions
          (lambda ()
                  (when (not (display-graphic-p))
                    (prettify-symbols-mode -1)
                    )
                  )
          )

This seems to work when I start emacs with emacs -nw. But it emacsclient quits immediately after it finishes starting up emacs daemon.

0

There are 0 best solutions below