From c8b99e4105e65d73af8b493f062aa1d5089e465e Mon Sep 17 00:00:00 2001 From: eshrh Date: Thu, 15 Aug 2024 20:08:54 -0400 Subject: [PATCH] docs: add installation instructions for straight also add installation instructions for rust-mode with treesitter derivation. --- README.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 68bc05b..96c760a 100644 --- a/README.md +++ b/README.md @@ -161,11 +161,11 @@ installing ### straight -[straight.el](https://github.com/raxod502/straight.el#install-packages) -clones each of your packages directly from its source. There are good -additional [installation -instructions](https://github.crookster.org/switching-to-straight.el-from-emacs-26-builtin-package.el/) -for moving your package management from package.el to straight. +```emacs-lisp +(straight-use-package '(rustic + :repo "emacs-rustic/rustic" + :fetcher github)) +``` ## remote @@ -349,6 +349,17 @@ And make to have rustic load after rust-mode: :after (rust-mode)) ``` +Alternatively, using straight without use-package: + +``` emacs-lisp +(straight-use-package 'rust-mode) +(setq rust-mode-treesitter-derive t) + +(straight-use-package 'rustic) +(with-eval-after-load 'rust-mode + (require 'rustic nil t)) +``` + ## LSP Disable `rustic-lsp-setup-p` to turn off automatic LSP configuration.