我正在尝试使用tuhdo's c ++ IDE指南,当我尝试设置company-c-headers时,我遇到并且错误表明Symbol的值作为变量是无效的:company-c-头路系统。我不确定我的init文件有什么问题。我到处寻找解决方案,它们似乎都不是我想要的,我跟着他的向导。这是我的初始文件。
;;autocomplete company
(require 'company)
(add-hook 'after-init-hook 'global-company-mode)
(setq company-backends (delete 'company-semantic company-backends))
(define-key c-mode-map [(tab)] 'company-complete)
(define-key c++-mode-map [(tab)] 'company-complete)
;;company-c-headers
(add-to-list 'company-backends 'company-c-headers)
(add-to-list 'company-c-headers-path-system "/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1")
答案 0 :(得分:0)
company-c-headers
不是自动加载你必须
(require 'company-c-headers)