# HG changeset patch # User Oleksandr Gavenko # Date 1318709740 -10800 # Node ID 995821d2a5cfa44753bbfd43ea3049f354695f0f # Parent 9c5cb48451ad6122cf9d6b3a7a19b5efeb975f79 'eldoc-mode' for Python work starting from version 22. diff -r 9c5cb48451ad -r 995821d2a5cf .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))