Browse files

Small patch to fix indentation behavior; before, the global tab-width…

… setting is used when inserting tabs with insert-tab, e.g. at the top of coffee-newline-and-insert. I used 'customize-group coffee' to set my coffee-tab-width to 2, but I have a global tab width of 4, so the net effect was that the number of tabs would be halved every time I hit return.
  • Loading branch information...
kelleyk authored and defunkt committed Aug 13, 2011
1 parent 27df14a commit b4b2a5377e92742fc3bc7b748ded86f46f1d62df
Showing with 1 addition and 0 deletions.
  1. +1 −0 coffee-mode.el
@@ -596,6 +596,7 @@ line? Returns `t' or `nil'. See the README for more details."
;; indentation
(make-local-variable 'indent-line-function)
(setq indent-line-function 'coffee-indent-line)
+ (set (make-local-variable 'tab-width) coffee-tab-width)
;; imenu
(make-local-variable 'imenu-create-index-function)

0 comments on commit b4b2a53

Please sign in to comment.