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.
我经常使用查询替换正则表达式,并且不时有很长的表达式。
我的问题如下:
Query replace regexp (default foo -> bar):
是否有可能隐藏默认表达式?
一个简单的建议就可以完成这项工作:
(defadvice query-replace-read-from (before no-default activate) (setq query-replace-defaults nil))
如果你使用minibuffer-electric-default-mode,那么一旦你在 minibuffer 中输入一些东西,默认值就会消失。
minibuffer-electric-default-mode