【发布时间】:2017-07-07 19:45:47
【问题描述】:
在 Emacs 中,我安装了 MELPA company-irony-c-header 包。然后我在网上做了一些研究,显然为了配置包,我认为“激活”它的意思是,我必须添加这个:
(defun company-my-backend (command &optional arg &rest ignored)
(interactive (list 'interactive))
(case command
(interactive (company-begin-backend 'company-my-backend))
(prefix (when (looking-back "foo\\>") (match-string 0)))
(candidates (when (equal arg "foo") (list "foobar" "foobaz" "foobarbaz")))
(meta (format "This value is named %s" arg))))
进入一个叫做“后端”的东西(foo 代表我的文件名)。我完全不知道后端是什么,或者如何使用它。任何帮助将不胜感激。
【问题讨论】: