From 625a333a25baff7f7eaf4a8a77a775d0dcf0c699 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Thu, 6 Jul 2023 20:20:13 -0700 Subject: [PATCH] Add rust hook in doomemacs; Remove C-c deletion in latex mode --- home/doomemacs/config.org | 11 +++++++++-- home/doomemacs/init.el | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/home/doomemacs/config.org b/home/doomemacs/config.org index 666cda9..444d56b 100644 --- a/home/doomemacs/config.org +++ b/home/doomemacs/config.org @@ -450,8 +450,8 @@ introduced. (add-hook 'tex-mode-hook #'custom/common-program-hook) (add-hook 'LaTeX-mode-hook #'custom/common-program-hook) (setq-default TeX-electric-sub-and-superscript nil) - (local-unset-key "C-c C-l") - (local-unset-key "C-c `") + ;(local-unset-key "C-c C-l") + ;(local-unset-key "C-c `") ) (map! :after latex :localleader @@ -562,6 +562,13 @@ Add the necessary hooks for LilyPond mode. ) #+end_src +*** Rust + +#+begin_src emacs-lisp +(after! rustic + (setq rustic-indent-offset standard-indent)) +#+end_src + ** Tools *** Language Server Protocol (LSP) diff --git a/home/doomemacs/init.el b/home/doomemacs/init.el index 417dbce..85fb8f5 100644 --- a/home/doomemacs/init.el +++ b/home/doomemacs/init.el @@ -164,7 +164,7 @@ ;;rest ; Emacs as a REST client ;;rst ; ReST in peace ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} - (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() + (rust +lsp +tree-sitter) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;scala ; java, but good ;;(scheme +guile) ; a fully conniving family of lisps sh ; she sells {ba,z,fi}sh shells on the C xor