Permalink
Browse files

Python modes #2

  • Loading branch information...
1 parent 1961388 commit 5a2f37440ae7b797f2b4a4269906f53a5c35a104 @antonj antonj committed Jan 5, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 highlight-indentation.el
View
10 highlight-indentation.el
@@ -56,10 +56,12 @@ on spaces"
(set (make-local-variable 'highlight-indentation-offset)
;; Set indentation offset from highlight-indentation-offset if set, otherwise
;; according to major mode
- (cond ((eq major-mode 'python-mode)
- (if (boundp 'python-indent)
- python-indent
- py-indent-offset))
+ (cond ((and (eq major-mode 'python-mode) (boundp 'python-indent))
+ python-indent)
+ ((and (eq major-mode 'python-mode) (boundp 'py-indent-offset))
+ py-indent-offset)
+ ((and (eq major-mode 'python-mode) (boundp 'python-indent-offset))
+ python-indent-offset)
((eq major-mode 'ruby-mode)
ruby-indent-level)
((and (eq major-mode 'scala-mode) (boundp 'scala-indent:step))

0 comments on commit 5a2f374

Please sign in to comment.