[英]How to mimic Sublime Text's HTML dom completion in Emacs?
Currently in Sublime Text 2 I can do the following while editing a .html file: 当前在Sublime Text 2中,我可以在编辑.html文件时执行以下操作:
hr.margin-none <TAB>
and it will expand automatically to 它将自动扩展为
<hr class="margin-none"></hr>
Is there a similar function in Emacs? Emacs中有类似的功能吗? I found something on Flexible Expand but it doesn't seem to do what I was hoping (or maybe I'm just using it wrong.) 我在Flexible Expand上找到了一些东西,但它似乎并没有实现我所希望的(或者也许我只是在错误地使用它。)
Thanks! 谢谢!
You can do the same thing in Emacs. 您可以在Emacs中执行相同的操作。 Just install the emmet-mode
and enable it. 只需安装emmet-mode
并启用它。 Reading the following page would help you. 阅读以下页面将对您有所帮助。
https://github.com/smihica/emmet-mode https://github.com/smihica/emmet-mode
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.