Skip to content

Commit

Permalink
Small patch to fix indentation behavior; before, the global tab-width…
Browse files Browse the repository at this point in the history
… 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 15, 2011
1 parent 27df14a commit b4b2a53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coffee-mode.el
Expand Up @@ -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)
Expand Down

0 comments on commit b4b2a53

Please sign in to comment.