Fix void-variable rtags-rdm-binary-name error

This commit is contained in:
Henrik Lissner 2019-02-27 03:13:11 -05:00 committed by GitHub
parent 1f63358947
commit c3a6d38da4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,6 +191,7 @@ compilation database is present in the project.")
(defun +cc|init-rtags ()
"Start an rtags server in c-mode and c++-mode buffers."
(when (and (memq major-mode '(c-mode c++-mode))
(require 'rtags nil t)
(rtags-executable-find rtags-rdm-binary-name))
(rtags-start-process-unless-running)))
(add-hook 'c-mode-common-hook #'+cc|init-rtags)