Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

c++-rtags Spacemacs layer

This layer augments C++ support provided by Spacemacs` c-c++ layer.

Features

  • Adds rtags package for basic RTags support
  • Adds company-rtags package for RTags-powered completion
  • Adds flycheck-rtags for checking C++ code with RTags
  • Adds helm-rtags for Helm integration
  • Ensures RTags daemon (rdm) is started via cmake-ide-maybe-start-rdm
  • Enables completion (via company) and linting (via adding a checker to and replacing flycheck highligher) in C/C++ modes

Installation

Simply clone the repository into your emacs.d private directory:

git clone https://github.com/kzemek/cpp-rtags-layer ~/.emacs.d/private/c++-rtags

and enable the layer in ~/.spacemacs along with c-c++ (without clang support):

...
dotspacemacs-configuration-layers
'( ...
c-c++
c++-rtags
...
)
...

If your c-c++ layer doesn't include cmake-ide support you may additionally need to fetch it from develop branch:

cd~/.emacs.d && git fetch && git checkout origin/develop layers/+lang/c-c++/

Project setup

Key bindings

Key BindingDescription
C <tab>Forces showing completions on current point (company-complete)
, g gJumps to symbol definition (using RTags)
, g fApply Clang fixit
C-c rVarious rtags functions

About

Add RTags support to c-c++ Spacemacs layer.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages