From 1f79e08c2274f914e4afb974c9456ba787b45fbe Mon Sep 17 00:00:00 2001 From: Alexander Kurbatov Date: Tue, 16 Apr 2024 12:07:35 +0300 Subject: [PATCH] Describe how to install lspce using straight Signed-off-by: Alexander Kurbatov --- README.org | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index 7bcb1d2..0b9a19e 100644 --- a/README.org +++ b/README.org @@ -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 @@ -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