Windows doesn't have fonts for 'or'/'and' Python keywords.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 21 Feb 2017 11:22:31 +0200
changeset 1489 c0c3d88cd779
parent 1488 8da1fc103e49
child 1490 ab33594a8189
Windows doesn't have fonts for 'or'/'and' Python keywords.
.emacs-my
--- a/.emacs-my	Mon Feb 20 20:26:21 2017 +0200
+++ b/.emacs-my	Tue Feb 21 11:22:31 2017 +0200
@@ -3105,7 +3105,12 @@
 
 ;; Disable in flavor of Semantic and perfomance reason.
 ;; (when (>= emacs-major-version 22)
-;;   (add-hook 'python-mode-hook 'turn-on-eldoc-mode))
+;;   (add-hook 'python-mode-hook 'turn-on-eldoc-mode)
+
+(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)
 
 (when (equal window-system 'w32)
   (add-to-list 'process-coding-system-alist '("python" cp1251-unix . cp1251-unix)))