From ea0a117c4566b4394eec2c7500b6a2152f36ca37 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 12 Aug 2020 20:39:07 -0400 Subject: [PATCH] Bind M-RET to comment-continuation functions in web-mode and typescript-mode --- .emacs.d/init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4c77be3..838b9c2 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -799,6 +799,8 @@ (use-package web-mode :mode "\\.html?\\'" :mode "\\.vue?\\'" + :bind (:map web-mode-map + ("M-" . 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 + ("" . c-indent-new-comment-line))) + (use-package blacken :hook (python-mode . blacken-mode) :delight