Skip to content

Commit

Permalink
Python modes antonj#2
Browse files Browse the repository at this point in the history
  • Loading branch information
antonj committed Jan 5, 2013
1 parent 1961388 commit 5a2f374
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions highlight-indentation.el
Expand Up @@ -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))
Expand Down

0 comments on commit 5a2f374

Please sign in to comment.