RTAGS: remove rtags

Use eglot instead, it's built-in:
https://github.com/joaotavora/eglot#contribute-to-eglots-development
This commit is contained in:
Laurens Miers 2023-12-05 16:06:54 +01:00
parent ff9ed0382d
commit 51f4498c99

View file

@ -109,7 +109,6 @@ My personal emacs configuration
This configuration requires the installation of : This configuration requires the installation of :
- =rtags=
- Use python-pip to install requirements for elpy: - Use python-pip to install requirements for elpy:
=pip install jedi flake8 importmagic autopep8 yapf= =pip install jedi flake8 importmagic autopep8 yapf=
- =ditaa= (for ascii to image generation in org-mode) - =ditaa= (for ascii to image generation in org-mode)
@ -1203,51 +1202,6 @@ Deprecated in favour of rtags
#+END_SRC #+END_SRC
*** Rtags
https://github.com/Andersbakken/rtags
#+BEGIN_SRC emacs-lisp
(use-package rtags-xref
:hook
((c-mode-common) . (function rtags-xref-enable))
)
(use-package rtags
:init
;; TODO
;; (setq rtags-display-result-backend 'helm)
(setq rtags-completions-enabled t)
(setq rtags-autostart-diagnostics t)
:config
(rtags-enable-standard-keybindings)
(define-key c-mode-base-map (kbd "C-M-.") (function rtags-find-symbol))
(define-key c-mode-base-map (kbd "C-M-?") (function rtags-find-references))
(define-key c-mode-base-map (kbd "M-?") (function rtags-find-references-at-point))
(define-key c-mode-base-map (kbd "M-i") (function rtags-imenu))
:hook
((c-mode c++-mode objc-mode) . (function rtags-start-process-unless-running))
)
;; Stolen from the github wiki of rtags
(defun my-flycheck-rtags-setup ()
(flycheck-select-checker 'rtags)
(setq-local flycheck-highlighting-mode nil) ;; RTags creates more accurate overlays.
(setq-local flycheck-check-syntax-automatically nil))
(use-package flycheck-rtags
:hook
(
(c-mode c++-mode objc-mode) . (function my-flycheck-rtags-setup)
)
)
(use-package company-rtags
:config
(push 'company-rtags company-backends)
)
#+END_SRC
*** Company *** Company
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp