Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CoffeeScript indentation problems in Emacs [closed]

I am not even sure how to ask this. It feels like anytime I misindent one place in Emacs for a bigger CoffeeScript file, I end up spending a long time looking for the misindentation. Is there a better coffeescript.el mode file that can solve this? Anybody running into similar problem? What is the best practice on that? It gets to a point I am kind of afraid to make change to that CoffeeScript file.

like image 755
Jerry Deng Avatar asked Mar 08 '12 18:03

Jerry Deng


1 Answers

The README on the coffee-mode author page describes how indentation works. In short, create a global variable tab-width either by putting (setq tab-width 4) in your .emacs, or by executing extended command M-x set-variable RET tab-width RET 4.

If this is still not the desirable behavior, then file a bug on the author's issues page.

like image 102
Mirzhan Irkegulov Avatar answered Nov 06 '22 07:11

Mirzhan Irkegulov