From 2666caad79ea97286e781cfd358581248fd98c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Sun, 26 Aug 2018 00:02:42 +0200 Subject: [PATCH] describe using rtags-install --- init.el | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/init.el b/init.el index 5660ed2..e559bda 100644 --- a/init.el +++ b/init.el @@ -416,28 +416,13 @@ Argument FRAMES has the same meaning as for `set-frame-font'" ;;; `libclang` library (package `libclang-dev` or may be newer ;;; `libclang-X.Y-dev` under Debian) which is required by `rtags`. -;;; 2. Install `rtags` server with (it assumes first that you do have -;;; `llvm-config-3.8` instead of `llvm-config` thus the extra option is -;;; needed and second that you want to install it in `/opt/rtags` -;;; instead of default `/usr/local`): - -;;; ``` -;;; $ git clone --recursive https://github.com/Andersbakken/rtags.git -;;; $ cd rtags -;;; $ mkdir build -;;; $ cd build -;;; $ cmake -DLIBCLANG_LLVM_CONFIG_EXECUTABLE=llvm-config-3.8 \ -;;; -DCMAKE_INSTALL_PREFIX=/opt/rtags .. -;;; $ make -;;; ``` - -;;; And as root - -;;; ``` -;;; # make install -;;; # ln -s /opt/rtags/bin/rc /usr/local/bin/rc -;;; # ln -s /opt/rtags/bin/rdm /usr/local/bin/rdm -;;; ``` +;;; 2. Under Emacs having `rtags` package installed press `M-:` and +;;; evaluate expression `(require 'rtags)` and then press `M-x` and +;;; run command `rtags-install` (should work if you have +;;; `llvm-config` in your path) and wait until it compiles to 100%. +;;; The `rtags-install` command needs to be rerun if you install +;;; newer `rtags` from MELPA and the below commands do not work +;;; complaining about protocol mismatch. ;;; 3. Usefull `rtags` functions (use `C-c r C-h` to see these and other key bindings)