mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/cc: don't complain about missing rtags executable
This commit is contained in:
@ -92,7 +92,8 @@ compilation dbs."
|
||||
;;;###autoload
|
||||
(defun +cc|init-rtags ()
|
||||
"Start an rtags server in c-mode and c++-mode buffers."
|
||||
(when (memq major-mode '(c-mode c++-mode))
|
||||
(when (and (memq major-mode '(c-mode c++-mode))
|
||||
(rtags-executable-find "rtags"))
|
||||
(rtags-start-process-unless-running)))
|
||||
|
||||
;;;###autoload
|
||||
|
@ -213,7 +213,7 @@ compilation database is present in the project.")
|
||||
;;
|
||||
|
||||
(def-package! rtags
|
||||
:commands (rtags-restart-process rtags-start-process-unless-running)
|
||||
:commands (rtags-restart-process rtags-start-process-unless-running rtags-executable-find)
|
||||
:init
|
||||
(add-hook! (c-mode c++-mode) #'+cc|init-rtags)
|
||||
:config
|
||||
|
Reference in New Issue
Block a user