您的位置:首页 > 其它

emacs24下auto-complete的三个问题

2012-10-11 12:19 274 查看
一个是与linum共用时,每当出现补全菜单,linum会更新(增加)行号,虽不影响使用但很不美观而且晃眼,解决办法如下:

(defun ac-linum-workaround ()

"linum-mode tries to display the line numbers even for the

completion menu. This workaround stops that annoying behavior."

(interactive)

(defadvice linum-update (around ac-linum-update-workaround activate)

(unless ac-completing

ad-do-it)))

;开启linum时调用

(ac-linum-workaround)

另一个问题是当(setq ac-auto-start nil),手动启动auto-complete出现补全菜单时会开住(无法上/下移动选择补全项),没找到具体原因,

反复尝试后加入如下设置可以解决之:(setq ac-expand-on-auto-complete nil)

最后一个显示补全信息时提示warning: defvar ignored because help-xref-following is let-bound,这是因为未能及时加载help-mode.el

打开auto-complete.el(版本1.3.1)在49行下面加入(require 'help-mode)即可,不要忘了重新编译一下。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: