emacs-pug-mode
emacs-pug-mode copied to clipboard
Electric backspace issue when deleting whitespace
Hi Henrik, I have been using this mode but I keep getting some problems with indentation, I don't know if is this mode or just my emacs setup though.
For example, here I'm deleting a line I don't want:

However, if I use C-k I can delete the line without modifying the indentation of the rest of the file.
Thanks.
Just discovered the pug-backspace-backdents-nesting variable so I don't have the problem anymore. However, now I understand the expected behavior. I'll check it out later to see if I can improve it.
Is this still an issue?
I haven't written Pug code in a while, but at that time I just had to set the pug-backspace-backdents-nesting variable to false if I remember correctly. After that, I didn't check the issue further.
Still an issue for me:
System Info :computer:
- OS: gnu/linux
- Emacs: 25.3.1
- Spacemacs: 0.200.9
- Spacemacs branch: master (rev. 8e1af145)
- pug-mode-20170914.208 (from MELPA)
- Graphic display: t
- Distribution: spacemacs
- Editing style: vim
- Completion: helm
- Layers:
(emacs-lisp html helm javascript markdown shell-scripts vimscript) - System configuration features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS