From 4775f115295d4d05f6a7aed8423dd5c420833890 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 13 Jun 2023 22:21:03 -0600 Subject: [PATCH] [Emacs] Disable rust proc macro warnings in lsp --- dotfiles/emacs.d/README.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 287e8b72..27f6ff4e 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -1586,11 +1586,13 @@ custom-set-faces in your custom file. (progn (setq highlight-indent-guides-method 'fill))) #+END_SRC -** chat-gpt +** gptel #+begin_src emacs-lisp (use-package gptel + :bind (("C-c g" . gptel-menu)) :config (progn + (add-to-list 'gptel-directives '(finish-code . "You are a large language model and a careful programmer. Provide code that completes what is provided and only code as output without any additional text, prompt or note.")) ;; (setq gptel-model "gpt-4") )) #+end_src @@ -2808,6 +2810,7 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877 :preface (progn (defvar imalison:use-lsp-rust t) + (setq lsp-rust-analyzer-diagnostics-disabled ["unresolved-proc-macro"]) (defun imalison:rust-mode-hook () (when imalison:use-lsp-rust (lsp-deferred)) @@ -4953,7 +4956,7 @@ Ensure all themes that I use are installed: waher-theme ample-theme material-theme zerodark-theme color-theme-modern leuven-theme spacemacs-theme gruvbox-theme forest-blue-theme flatland-theme afternoon-theme - cyberpunk-theme)) + cyberpunk-theme modus-themes)) (mapcar 'straight-use-package packages-appearance)