Skip to content

Commit

Permalink
Merge pull request #34 from eshrh/main
Browse files Browse the repository at this point in the history
docs: add installation instructions for straight
  • Loading branch information
psibi authored Aug 16, 2024
2 parents db1899f + c8b99e4 commit 844c9fd
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 844c9fd

Please sign in to comment.