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