* bug#57989: 27.1; mhtml-mode should support C-c / in sub-modes
@ 2022-09-21 18:40 Benjamin Moody
0 siblings, 0 replies; only message in thread
From: Benjamin Moody @ 2022-09-21 18:40 UTC (permalink / raw)
To: 57989
When editing HTML, I'm accustomed to pressing C-c / to close the
innermost element. For example, if I type
<html>
<head>
<style> p { color: red; }
and then press C-c /, I expect Emacs to insert "</style>".
However, with mhtml-mode, this doesn't work inside a <script> or <style>
element, because only the js-mode or css-mode bindings are in effect
there.
There are other html-mode keybindings that might sometimes be useful
inside of JS/CSS blocks too, such as C-c C-b and C-c C-f.
It's not obvious to me if there is any way to customize the bindings
that are in effect inside a CSS block in MHTML mode, independent of the
bindings that are in effect when editing a .css file.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-21 18:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-21 18:40 bug#57989: 27.1; mhtml-mode should support C-c / in sub-modes Benjamin Moody
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).