From d3e175370f57e8e0806d20804d0b4c9b21795b65 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Tue, 20 Dec 2022 23:21:34 -0300 Subject: [PATCH] Update readme to install khoj.el from MELPA stable unless using pre-release khoj Update readme to ask user to install khoj.el from MELPA when a pre-release version of the main khoj app is installed. Else install khoj.el from MELPA Stable --- src/interface/emacs/README.org | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/interface/emacs/README.org b/src/interface/emacs/README.org index 494915bb..199e4a7f 100644 --- a/src/interface/emacs/README.org +++ b/src/interface/emacs/README.org @@ -1,5 +1,5 @@ * Emacs Khoj - [[https://melpa.org/#/khoj][file:https://melpa.org/packages/khoj-badge.svg]] [[https://stable.melpa.org/#/khoj][file:https://stable.melpa.org/packages/khoj-badge.svg]] + [[https://stable.melpa.org/#/khoj][file:https://stable.melpa.org/packages/khoj-badge.svg]] [[https://melpa.org/#/khoj][file:https://melpa.org/packages/khoj-badge.svg]] /The Emacs interface for [[https://github.com/debanjum/khoj][Khoj]]/ @@ -14,12 +14,18 @@ Add below snippet to your Emacs config file #+begin_src elisp - ;; Install Khoj Package using MELPA + ;; Install Khoj Package from MELPA Stable (use-package khoj :ensure t + :pin melpa-stable :bind ("C-c s" . 'khoj)) #+end_src + Note: Install ~khoj.el~ from MELPA (instead of MELPA Stable) if you installed the pre-release version of khoj + - That is, use ~:pin melpa~ to install khoj.el in above snippet if khoj was installed with ~pip install --pre khoj-assistant~ + - Else use ~:pin melpa-stable~ to install khoj.el in above snippet if khoj was installed with ~pip install khoj-assistant~ + - This ensures both khoj.el and khoj app are from the same version (tagged or latest) + **** Using [[https://github.com/raxod502/straight.el][Straight.el]] Add below snippet to your Emacs config file #+begin_src elisp