Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
(defun search-for-what-is-just-killed () (interactive) (search-forward latestkillringvariable? nil t) )
如何在 emacs lisp 函数中使用“yank”?
您可以直接访问kill-ring列表以访问最新的杀戮:
kill-ring
(substring-no-properties (car kill-ring))
这substring-no-properties一点很重要,因为文本保留在具有其他属性的杀伤环中(例如特定于特定模式的字体,您可能想要剥离这些属性)。
substring-no-properties