emacs萌新。参考的别人的配置,但是发现好像别人的c++都没有配置cmake。
问题
- 无法找到iostream文件
- cmake 使用find_package的文件也无法补全,比如opencv库(这个之前看到一点似乎是load_path的问题,那么cmake的PATH能否导出并添加到emacs的load_path?这个我搜了一下没搜到。
希望各位提供解决方案或者自己的配置。
下面是关于c++的简单配置
dotspacemacs-configuration-layers
’(cmake :variables cmake-enable-cmake-ide-support t)
(c-c++ :variables
c-c++-default-mode-for-headers 'c++-mode
;;c-c++-enable-clang-support t ;;disable it if ccls backend is enabled
c-c++-adopt-subprojects t
c-c++-backend 'lsp-ccls
c-c++-lsp-executable (file-truename "~/Applications/ccls/Release/ccls")
c-c++-lsp-sem-highlight-rainbow t
c-c++-enable-google-style t
c-c++-enable-google-newline t
c-c++-enable-auto-newline t
)