Skip to content

Coffee-mode, indents keeps doubling #369

@quangv

Description

@quangv

Description :octocat:

I am editing a coffee-script file, so am using coffee-mode

The indents keeps doubling... so 4, 8, 16, 32 .... the further I nest...

https://emacs.stackexchange.com/questions/41072/spacemacs-coffee-mode-indents-keeps-doubling?noredirect=1#comment64517_41072

Thanks!

Reproduction guide 🪲

  • Open a .coffee file with spacemacs
  • type [ RET (right bracket auto-inserted)
  • type [ RET (right bracket auto-inserted) again
  • type [ RET (right bracket auto-inserted) and again...

Observed behaviour: 👀 💔

The indents keeps doubling.

what happens

Expected behaviour: ❤️ 😄
enter image description here

Only indent 2 spaces per level.

System Info 💻

  • OS: gnu/linux
  • Emacs: 25.3.1
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. 0fa3658)
  • Graphic display: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(react python vimscript asciidoc html javascript markdown clojure helm emacs-lisp neotree           
       (keyboard-layout :variables kl-layout 'colemak-hnei)                                         
       themes-megapack)                                                                             
  • System configuration features: JPEG SOUND GPM DBUS NOTIFY LIBSELINUX GNUTLS LIBXML2 ZLIB MODULES

Backtrace 🐾

<<BACKTRACE IF RELEVANT>>                                                                           

mirror of: syl20bnr/spacemacs#10602

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions