about summary refs log tree commit diff
path: root/dotfiles/.emacs
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2023-02-02 18:30:12 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2023-02-02 18:30:12 +0100
commitd1adc5dc4f069c3928c22a3557703367af6a451f (patch)
tree6bc60d939a9b3e7a9961be46491312a30c7f7ae7 /dotfiles/.emacs
parentHosts: Add mpd/ncmpcpp service/package (diff)
downloadnixos-config-d1adc5dc4f069c3928c22a3557703367af6a451f.tar.gz
nixos-config-d1adc5dc4f069c3928c22a3557703367af6a451f.tar.bz2
nixos-config-d1adc5dc4f069c3928c22a3557703367af6a451f.zip
Dotfiles: Emacs: C/C++ support
Diffstat (limited to '')
-rw-r--r--dotfiles/.emacs13
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)