Bind M-RET to comment-continuation functions in web-mode and typescript-mode

This commit is contained in:
Adam Goldsmith 2020-08-12 20:39:07 -04:00
parent 109fd2dd60
commit ea0a117c45
1 changed files with 6 additions and 0 deletions

View File

@ -799,6 +799,8 @@
(use-package web-mode
:mode "\\.html?\\'"
:mode "\\.vue?\\'"
:bind (:map web-mode-map
("M-<return>" . web-mode-comment-indent-new-line))
:config
(add-to-list 'web-mode-indentation-params '("lineup-calls" . nil))
(setq-default web-mode-markup-indent-offset 2
@ -996,6 +998,10 @@
(org-lookup-dnd-parse-extras)
(org-lookup-dnd-dump-vars-to-file '(org-lookup-dnd-db) org-lookup-dnd-db-file))
(use-package typescript-mode
:bind (:map typescript-mode-map
("<M-return>" . c-indent-new-comment-line)))
(use-package blacken
:hook (python-mode . blacken-mode)
:delight