Update emacs.org
This commit is contained in:
parent
102755e01d
commit
bf18f8ae92
1 changed files with 16 additions and 12 deletions
|
@ -252,7 +252,7 @@ Should make startup faster, taken from doom-emacs
|
||||||
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
|
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
|
||||||
doom-themes-enable-italic t) ; if nil, italics is universally disabled
|
doom-themes-enable-italic t) ; if nil, italics is universally disabled
|
||||||
;; load the theme
|
;; load the theme
|
||||||
(load-theme 'doom-homeage-black t)
|
(load-theme 'doom-monokai-pro t)
|
||||||
|
|
||||||
(doom-themes-org-config)
|
(doom-themes-org-config)
|
||||||
|
|
||||||
|
@ -866,16 +866,20 @@ make sure to setup authinfo
|
||||||
#+end_src
|
#+end_src
|
||||||
***** Astro
|
***** Astro
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package astro-ts-mode
|
(define-derived-mode astro-mode web-mode "astro")
|
||||||
:straight t
|
(setq auto-mode-alist
|
||||||
:mode "\\.astro\\'"
|
(append '((".*\\.astro\\'" . astro-mode))
|
||||||
:hook (astro-ts-mode . lsp)
|
auto-mode-alist))
|
||||||
:config
|
|
||||||
(setq treesit-language-source-alist
|
(add-to-list 'lsp-language-id-configuration
|
||||||
'((astro "https://github.com/virchau13/tree-sitter-astro")
|
'(astro-mode . "astro"))
|
||||||
(css "https://github.com/tree-sitter/tree-sitter-css")
|
|
||||||
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src"))))
|
(lsp-register-client
|
||||||
#+end_src>
|
(make-lsp-client :new-connection (lsp-stdio-connection '("astro-ls" "--stdio"))
|
||||||
|
:activation-fn (lsp-activate-on "astro")
|
||||||
|
:server-id 'astro-ls))
|
||||||
|
|
||||||
|
#+end_src
|
||||||
***** C/C++
|
***** C/C++
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(add-hook 'c-mode-hook 'lsp)
|
(add-hook 'c-mode-hook 'lsp)
|
||||||
|
|
Loading…
Reference in a new issue