Build and install RTags using the RTags Quickstart Guide. Alternatively install RTags using your distribution's package manager.

Install rtags from MELPA and add the following to your emacs init file:

( require ' rtags ) ( require ' company-rtags ) ( setq rtags-completions-enabled t ) ( eval-after-load 'company ' ( add-to-list 'company-backends 'company-rtags ) ) ( setq rtags-autostart-diagnostics t ) ( rtags-enable-standard-keybindings )

To enable Helm integration add:

( require ' rtags-helm ) ( setq rtags-use-helm t )

Before using RTags you need to start rdm and index your project. In order to index your project, RTags requires you to export your project's compile commands with cmake.

$ rdm & $ cd /path/to/project/root $ cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=1 $ rc -J .

We'll see how to automate this process with cmake-ide below.