emacs: eglot-ensure for c/c++-ts-mode, set theme to Monokai Pro

This commit is contained in:
Erwin Boskma 2023-11-21 20:20:32 +01:00
parent 545e7cb66c
commit 61134349cb
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ
2 changed files with 9 additions and 7 deletions

View file

@ -396,7 +396,7 @@ Disabled because the configuration is handled by Nix using [[https://github.com/
:prefix my/leader :prefix my/leader
"C" 'find-config) "C" 'find-config)
#+end_src #+end_src
** Appearance ** COMMENT Appearance
Enable pixel scrolling. Enable pixel scrolling.
@ -404,9 +404,9 @@ Enable pixel scrolling.
(setq pixel-scroll-precision-mode t) (setq pixel-scroll-precision-mode t)
#+end_src #+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 (use-package dracula-theme
:init :init
(load-theme 'dracula t)) (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. [[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 (use-package monokai-pro-theme
:init :init
(load-theme 'monokai-pro t)) (load-theme 'monokai-pro-spectrum t))
#+end_src #+end_src
Set fonts. Set fonts.
@ -1441,8 +1441,8 @@ Enable clangd LSP for C and C++
:ensure nil :ensure nil
:after eglot :after eglot
:hook :hook
(c-mode . eglot-ensure) ((c-mode c-ts-mode) . eglot-ensure)
(c++-mode . eglot-ensure)) ((c++-mode c++-ts-mode) . eglot-ensure))
#+end_src #+end_src
Enable and configure =auto-insert-mode= for Horus projects Enable and configure =auto-insert-mode= for Horus projects

View file

@ -28,6 +28,8 @@ with lib; let
(treesit-grammars.with-grammars (p: with p; [ (treesit-grammars.with-grammars (p: with p; [
tree-sitter-bash tree-sitter-bash
tree-sitter-c tree-sitter-c
tree-sitter-c-sharp
tree-sitter-css
tree-sitter-cmake tree-sitter-cmake
tree-sitter-comment tree-sitter-comment
tree-sitter-commonlisp tree-sitter-commonlisp