Bind M-RET to comment-continuation functions in web-mode and typescript-mode
This commit is contained in:
parent
109fd2dd60
commit
ea0a117c45
@ -799,6 +799,8 @@
|
|||||||
(use-package web-mode
|
(use-package web-mode
|
||||||
:mode "\\.html?\\'"
|
:mode "\\.html?\\'"
|
||||||
:mode "\\.vue?\\'"
|
:mode "\\.vue?\\'"
|
||||||
|
:bind (:map web-mode-map
|
||||||
|
("M-<return>" . web-mode-comment-indent-new-line))
|
||||||
:config
|
:config
|
||||||
(add-to-list 'web-mode-indentation-params '("lineup-calls" . nil))
|
(add-to-list 'web-mode-indentation-params '("lineup-calls" . nil))
|
||||||
(setq-default web-mode-markup-indent-offset 2
|
(setq-default web-mode-markup-indent-offset 2
|
||||||
@ -996,6 +998,10 @@
|
|||||||
(org-lookup-dnd-parse-extras)
|
(org-lookup-dnd-parse-extras)
|
||||||
(org-lookup-dnd-dump-vars-to-file '(org-lookup-dnd-db) org-lookup-dnd-db-file))
|
(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
|
(use-package blacken
|
||||||
:hook (python-mode . blacken-mode)
|
:hook (python-mode . blacken-mode)
|
||||||
:delight
|
:delight
|
||||||
|
Loading…
Reference in New Issue
Block a user