spacemacs c++ 智能提示2

本文介绍了如何在Ubuntu 16.10上使用Spacemacs配置Irony layer以实现C++的智能提示。通过创建并修改irony layer的配置文件,设置编译库(compilation database),并在项目根目录下创建.clang_complete文件。在完成配置后,可以使用M-x company-complete命令进行测试,达到自动提示的效果,同时支持通过C-c ! n或M-x flycheck-next-error快速跳转到错误位置。
摘要由CSDN通过智能技术生成

ubuntu 16.10上搞ycmd没弄好,正好看到irony是一个更好的配置。据说主要是安装简单。就折腾了一下。


在spacemacs中配置irony layer

用spacemacs创建irony layer的默认配置文件,然后修改packages.el文件:

;;; packages.el --- irony layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Dean Chen <chenshu@ysten.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3

;;; Commentary:

;; See the Spacemacs documentation and FAQs for instructions on how to implement
;; a new layer:
;;
;;   SPC h SPC layers RET
;;
;;
;; Briefly, each package to be installed or configured by this layer should be
;; added to `irony-packages'. Then, for each package PACKAGE:
;;
;; - If PACKAGE is not referenced by any other Spacemacs layer, define a
;;   function `irony/init-PACKAGE' to load and initialize the package.

;; - Otherwise, PAC
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值