0

How can I disable and / or keywords substitution in Python mode in Emacs 25.1?

Cygwin emacs-w32 can't find appropriate fonts in Windows (for and )...

1

Unfortunately this doesn't work:

(defun my/python-mode-hook ()
  (when (eq window-system 'w32)
    (setq prettify-symbols-alist nil)))
(add-hook 'python-mode-hook 'my/python-mode-hook)

So I do:

(defun my/python-mode-hook ()
  (when (and (eq window-system 'w32) (fboundp 'prettify-symbols-mode))
    (prettify-symbols-mode -1)))
(add-hook 'python-mode-hook 'my/python-mode-hook)

The problem because I have:

(global-prettify-symbols-mode 1)

that I set 2 years ago...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.