当您将文本从一个缓冲区复制到另一缓冲区(Mw和Cy)时,它会使用字体锁复制文本,而在粘贴文本时,它会以我复制的缓冲区中的颜色显示。是否可以更改它以使其与新缓冲区中的字体一起显示?
有关用户选项yank-excluded-properties
和文档,请参见文档yank-handled-properties
。然后从以下文档开始yank
:C-h f yank
。它告诉你:
When this command inserts text into the buffer, it honors the
`yank-handled-properties' and `yank-excluded-properties'
variables, and the `yank-handler' text property. See
`insert-for-yank-1' for details.
IOW,只是告诉yank
不要粘贴诸如face
和的属性font-lock-face
。
另请参见Elisp手册,节点Yanking
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句