You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To enforce that, I also applied this configuration using a heuristic approach since I don't know which works and none of them didn't yield any positive result:
(defundisable-final-newline ()
"Disable the adding of final newlines in the current buffer."
(interactive)
(set (make-local-variable 'require-final-newline) nil))
(add-hook 'snippet-mode 'disable-final-newline)
(add-hook 'web-mode 'disable-final-newline)
(add-hook 'web-mode-hook 'disable-final-newline)
(add-hook 'web-mode-hook (lambda () (setq-local require-final-newline nil)))
(add-hook 'html-mode-hook (lambda () (setq-local require-final-newline nil)))
(customize-set-variable 'require-final-newline nil)
Operating system
Debian Bookworm
Emacs version
GNU Emacs 28.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2022-10-26
Installed commit of doom-snippets
90b1b221f
The text was updated successfully, but these errors were encountered:
What were you expecting?
I'm trying adding an attribute snippet which should behave like this:
<div new-snippet="here"></div>
What actually happened?
I instead got this:
Steps to reproduce
This is my snippet (I made sure it does not contain a any line break/newline):
To enforce that, I also applied this configuration using a heuristic approach since I don't know which works and none of them didn't yield any positive result:
Operating system
Debian Bookworm
Emacs version
GNU Emacs 28.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2022-10-26
Installed commit of doom-snippets
90b1b221f
The text was updated successfully, but these errors were encountered: