Skip to content

Commit

Permalink
Merge pull request #32 from alkurbatov/document_installation_with_str…
Browse files Browse the repository at this point in the history
…aight

Describe how to install lspce using straight
  • Loading branch information
zbelial authored Apr 16, 2024
2 parents 2e5b583 + 1f79e08 commit c172baa
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@

* Installation
At the moment, you can only install LSPCE by cloning this repo and compile rust code manually.

Before installing LSPCE, you should install rust and cargo first.

** Installing from the Git Repository
Before installing LSPCE, you should install rust and cargo first.
#+BEGIN_SRC bash
$ git clone https://github.com/zbelial/lspce.git ~/.emacs.d/site-lisp/lspce
$ cd ~/.emacs.d/site-lisp/lspce
Expand All @@ -61,6 +63,18 @@
$ mv target/debug/liblspce_module.dylib lspce-module.dylib
#+END_SRC

** Installing using Straight
#+BEGIN_SRC elisp
(straight-use-package
`(lspce :type git :host github :repo "zbelial/lspce"
:files (:defaults ,(pcase system-type
('gnu/linux "lspce-module.so")
('darwin "lspce-module.dylib")))
:pre-build ,(pcase system-type
('gnu/linux '(("cargo" "build" "--release") ("cp" "./target/release/liblspce_module.so" "./lspce-module.so")))
('darwin '(("cargo" "build" "--release") ("cp" "./target/release/liblspce_module.dylib" "./lspce-module.dylib"))))))
#+END_SRC

* Get started
#+BEGIN_SRC elisp
(use-package lspce
Expand Down

0 comments on commit c172baa

Please sign in to comment.