Fix: Warning: reference to free variable `python-indent'.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 11 Sep 2016 15:31:04 +0300
changeset 1432 e099be0ee680
parent 1431 c78504ea530f
child 1433 a062de941d68
Fix: Warning: reference to free variable `python-indent'.
.emacs-my
--- a/.emacs-my	Sun Sep 11 15:26:25 2016 +0300
+++ b/.emacs-my	Sun Sep 11 15:31:04 2016 +0300
@@ -2785,7 +2785,10 @@
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (message "python, python-mode")
 
-(setq python-indent 4)
+(eval-when 'compile
+  (require 'python))
+
+(setq python-indent-offset 4)
 
 (defvar my-python/eldoc-setup-code
   "def __PYDOC_get_full_help(obj):