4
A
回答
5
假设你正在谈论dabbrev-expand
(M-/是通常的结合),然后有各种各样的根据您的需求选择。
要搜索的缓冲区只有特定的白名单中,最简单的方法是设置变量dabbrev-search-these-buffers-only
:
"If non-nil, a list of buffers which dabbrev should search.
If this variable is non-nil, dabbrev will only look in these buffers.
It will not even look in the current buffer if it is not a member of
this list."
下面是我的一个自定义模式为例(我重新绑定M-/
这个功能对于此模式)
(defun tks-dabbrev-expand (arg)
"Expand either aliases or descriptions, depending on context."
(interactive "*P")
(let* ((candidates
(if (looking-back "^\\S-+")
" *tks-aliases*"
" *tks-descriptions*"))
(dabbrev-search-these-buffers-only (list (get-buffer candidates))))
(dabbrev-expand arg)))
注意,有在其中您可以滤除dabbrev将内搜索缓冲区列表中的其他几个方面。该dabbrev自定义组有细节:
M-Xcustomize-group
RETdabbrev
RET
相关问题
- 1. 有没有办法在Emacs的缓冲区中嵌入可编辑的缓冲区?
- 2. 的Emacs迷你缓冲区完成
- 3. 有没有办法显示Linux缓冲区缓存未命中?
- 4. Emacs ERC缓冲区没有颜色
- 5. 有没有什么办法通过按键在emacs中格式化完整的python缓冲区?
- 6. 如何避免在Emacs中自动切换(只读)缓冲区
- 7. 我在一个框架中有两个emacs缓冲区:A.cc | B.cc
- 8. 所有emacs缓冲区中的行号
- 9. Jqueryui自动完成w/Django - 有没有办法只在特殊字符后自动完成?
- 10. 有没有办法确定CGLFlushDrawable在后台缓冲区中做了什么?
- 11. 接收到一个指定的缓冲区,它不一定是Emacs Lisp中的当前缓冲区
- 12. 有没有办法关闭gdb的缓冲区检查输入?
- 13. 有没有办法在python中自动定义一个函数?
- 14. 从文件恢复缓冲区后,有没有办法在Emacs中保留撤消列表?
- 15. 有没有办法列出所有在缓冲区中记住的命令?
- 16. 有没有办法重新绑定当前缓冲区中的“C-h”键?
- 17. 有没有办法从SQL Server中看到传入的缓冲区/记录?
- 18. emacs编译缓冲区自动关闭?
- 19. 有没有什么办法刷新SSL写缓冲区
- 20. 有没有办法查看stdin缓冲区?
- 21. 带有多个缓冲区的WSASend()可能完成不完整?
- 22. 有没有办法在nginx的server_name中指定一个reg?
- 23. 有没有办法使用Djinn在Emacs中自动生成Haskell代码?
- 24. 有没有办法在DevExpress GridView winforms中自动生成一行?
- 25. 有没有办法将协议缓冲区编译成纯Python代码?
- 26. 我可以在emacs中使用完成缓冲区而不是自动完成的菜单吗?
- 27. 有没有办法让VS C++自动完成更简单?
- 28. 有没有办法让Sublime Text 2自动完成HTML属性?
- 29. 在Vim中,有没有办法将当前行号复制到缓冲区中?
- 30. Z-fighting Direct3D9,只有动态缓冲区