Skip to content

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

Notifications You must be signed in to change notification settings

kzemek/cpp-rtags-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

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 Binding Description
C <tab> Forces showing completions on current point (company-complete)
, g g Jumps to symbol definition (using RTags)
, g f Apply Clang fixit
C-c r Various rtags functions

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published