diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-02-02 18:30:12 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-02-02 18:30:12 +0100 |
commit | d1adc5dc4f069c3928c22a3557703367af6a451f (patch) | |
tree | 6bc60d939a9b3e7a9961be46491312a30c7f7ae7 | |
parent | Hosts: Add mpd/ncmpcpp service/package (diff) | |
download | nixos-config-d1adc5dc4f069c3928c22a3557703367af6a451f.tar.gz nixos-config-d1adc5dc4f069c3928c22a3557703367af6a451f.tar.bz2 nixos-config-d1adc5dc4f069c3928c22a3557703367af6a451f.zip |
Dotfiles: Emacs: C/C++ support
-rw-r--r-- | dotfiles/.emacs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/dotfiles/.emacs b/dotfiles/.emacs index 8b29806..51a41eb 100644 --- a/dotfiles/.emacs +++ b/dotfiles/.emacs @@ -104,12 +104,21 @@ (use-package lsp-mode :ensure t - :hook ((haskell-mode . lsp-deferred)) - :commands (lsp lsp-deferred)) + :hook ((haskell-mode c-mode c++-mode c-or-c++-mode) . lsp-deferred) + :commands (lsp lsp-deferred) + :config + (setq lsp-clients-clangd-args '("-j=4" "-background-index" "--log=error" "--clang-tidy" "--enable-config")) + (setq lsp-auto-guess-root t)) (use-package lsp-haskell :ensure t ) +(use-package company + :ensure t) + +(use-package yasnippet + :ensure t) + (use-package rustic :ensure t) |