[英]newline-and-indent from CSS Mode put indent to kill ring
I'm using css mode 0.11 by Lars Marius Garshol, it have a function newline-and-indent
which call cssm-indent-line
and it put spaces from indentation to kill ring. 我使用的是Lars Marius Garshol的css模式0.11,它具有一个newline-and-indent
cssm-indent-line
函数,该函数调用cssm-indent-line
并在缩进中放置空格以杀死ring。 When I copy some css rule to clipboard and then type enter after semicolon and press CTRL+Y it insert spaces instead of the rule I had in clipboard. 当我将某些css规则复制到剪贴板,然后在分号后键入enter并按CTRL + Y时,它将插入空格而不是我在剪贴板中使用的规则。
How can I fix this behavior? 如何解决此问题?
Just substitute kill-region
by delete-region
in cssm-indent-line
. 只需在cssm-indent-line
中用delete-region
替换kill-region
delete-region
。 You could inform Lars Marius Garshol about that. 您可以将此告知Lars Marius Garshol。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.