Emacs stuff

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2021-05-09 23:36:21 +02:00
parent 99be4b8eda
commit 889e2c99e0
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 23 additions and 0 deletions

View file

@ -250,6 +250,17 @@
#+END_SRC
* Languages
*** C/C++
Enable ~ccls~.
#+BEGIN_SRC emacs-lisp
(use-package ccls
:straight t
:hook (c-mode . lsp)
(c++-mode . lsp))
#+END_SRC
*** Nix Expression Language
Enable ~nix-mode~.
@ -427,6 +438,17 @@
:mode ("\\.rs\\'" . rustic-mode))
#+END_SRC
* LSP
*** envrc
Enable ~envrc~, which changes ENVs on a per buffer basis.
#+BEGIN_SRC emacs-lisp
(use-package envrc
:straight t
:init
(envrc-global-mode))
#+END_SRC
*** lsp-mode
Increase GC threshold to avoid random freezes on garbage collection.

View file

@ -35,6 +35,7 @@ in
(rWrapper.override { packages = []; })
gnumake
ccls
] ++ [
rnix-lsp
] ++ [