'eldoc-mode' for Python work starting from version 22.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 15 Oct 2011 23:15:40 +0300
changeset 730 995821d2a5cf
parent 729 9c5cb48451ad
child 731 5b6105640c0e
'eldoc-mode' for Python work starting from version 22.
.emacs-my
--- a/.emacs-my	Sat Oct 15 23:14:28 2011 +0300
+++ b/.emacs-my	Sat Oct 15 23:15:40 2011 +0300
@@ -1613,7 +1613,9 @@
 
 (setq python-indent 4)
 
-(add-hook 'python-mode-hook 'turn-on-eldoc-mode)
+(when (>= emacs-major-version 22)
+  (add-hook 'python-mode-hook 'turn-on-eldoc-mode)
+  )
 
 (when (equal window-system 'w32)
   (add-to-list 'process-coding-system-alist '("python" cp1251-unix . cp1251-unix))