From 61134349cb555ee2dfc04542c418f2c5b559b71a Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 21 Nov 2023 20:20:32 +0100 Subject: [PATCH] emacs: eglot-ensure for c/c++-ts-mode, set theme to Monokai Pro --- home-manager/modules/emacs/config.org | 14 +++++++------- home-manager/modules/emacs/default.nix | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 83aa112..239a105 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -396,7 +396,7 @@ Disabled because the configuration is handled by Nix using [[https://github.com/ :prefix my/leader "C" 'find-config) #+end_src -** Appearance +** COMMENT Appearance Enable pixel scrolling. @@ -404,9 +404,9 @@ Enable pixel scrolling. (setq pixel-scroll-precision-mode t) #+end_src -I prefer the [[https://draculatheme.com][dracula theme]] +I like the [[https://draculatheme.com][dracula theme]] -#+begin_src emacs-lisp +#+begin_src emacs-lisp :tangle no (use-package dracula-theme :init (load-theme 'dracula t)) @@ -414,10 +414,10 @@ I prefer the [[https://draculatheme.com][dracula theme]] [[https://github.com/belak/emacs-monokai-pro-theme][Monokai Pro]] is also pretty. -#+begin_src emacs-lisp :tangle no +#+begin_src emacs-lisp (use-package monokai-pro-theme :init - (load-theme 'monokai-pro t)) + (load-theme 'monokai-pro-spectrum t)) #+end_src Set fonts. @@ -1441,8 +1441,8 @@ Enable clangd LSP for C and C++ :ensure nil :after eglot :hook - (c-mode . eglot-ensure) - (c++-mode . eglot-ensure)) + ((c-mode c-ts-mode) . eglot-ensure) + ((c++-mode c++-ts-mode) . eglot-ensure)) #+end_src Enable and configure =auto-insert-mode= for Horus projects diff --git a/home-manager/modules/emacs/default.nix b/home-manager/modules/emacs/default.nix index fed5091..9cf7e0d 100644 --- a/home-manager/modules/emacs/default.nix +++ b/home-manager/modules/emacs/default.nix @@ -28,6 +28,8 @@ with lib; let (treesit-grammars.with-grammars (p: with p; [ tree-sitter-bash tree-sitter-c + tree-sitter-c-sharp + tree-sitter-css tree-sitter-cmake tree-sitter-comment tree-sitter-commonlisp