Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Python modes #2

  • Loading branch information...
commit 5a2f37440ae7b797f2b4a4269906f53a5c35a104 1 parent 1961388
@antonj antonj authored
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))
Please sign in to comment.
Something went wrong with that request. Please try again.