Skip to content

Instantly share code, notes, and snippets.

@jwalt
jwalt / rtags-xref.el
Created July 11, 2017 16:12
Emacs25 rtags xref bindings
;;; rtags-xref.el -- rtags backend for xref.el
;;; Commentary:
;;;
;;; This adds support for the Emacs25 xref API (`xref-find-definitions' and
;;; friends) to rtags. Just `require' it and the default Emacs keybindings
;;; (M-., M-,, M-? etc.) use rtags.
;;;
;;; There is just one caveat: `xref-backend-apropos' (`C-M-.' by default) only
;;; supports a very limited regex subset: `.' and `.*', plus `^'/`$'. This is