C++ development in Emacs: clangd and eglot

Here's how to set up Emacs for a better C++ development experience, in my opinion. clangd install instructions https://clangd.llvm.org/installation clangd features https://clangd.llvm.org/features eglot keybindings (use-package eglot :bind (:map eglot-mode-map ("C-c l r" . eglot-rename) ("C-c l a" . eglot-code-actions) ("C-c l f" . eglot-format))) if you're not using use-package (define-key eglot-mode-map (kbd "C-c l r") 'eglot-rename) (define-key eglot-mode-map (kbd "C-c l a") 'eglot-code-actions) (define-key eglot-mode-map (kbd "C-c l f") 'eglot-format)