mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +00:00
Update Khoj.el Install Instructions on Emacs
This commit is contained in:
@@ -1,42 +1,35 @@
|
|||||||
* Emacs Khoj
|
* Emacs Khoj
|
||||||
/An Emacs interface for [[https://github.com/debanjum/khoj][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]]
|
||||||
|
|
||||||
** Requirements
|
/The Emacs interface for [[https://github.com/debanjum/khoj][Khoj]]/
|
||||||
|
|
||||||
|
** Prerequisites
|
||||||
- Install and Run [[https://github.com/debanjum/khoj][Khoj]]
|
- Install and Run [[https://github.com/debanjum/khoj][Khoj]]
|
||||||
|
|
||||||
** Installation
|
** Installation
|
||||||
- Direct Install
|
**** Using MELPA
|
||||||
- Put ~khoj.el~ in your Emacs load path. For e.g ~/.emacs.d/lisp
|
|
||||||
|
|
||||||
- Load via ~use-package~ in your ~/.emacs.d/init.el or .emacs file by adding below snippet
|
|
||||||
#+begin_src elisp
|
#+begin_src elisp
|
||||||
;; Khoj Package
|
M-x package-install khoj
|
||||||
|
#+end_src elisp
|
||||||
|
|
||||||
|
Add below snippet to your Emacs config file
|
||||||
|
#+begin_src elisp
|
||||||
|
;; Install Khoj Package using MELPA
|
||||||
(use-package khoj
|
(use-package khoj
|
||||||
:load-path "~/.emacs.d/lisp/khoj.el"
|
:ensure t
|
||||||
:bind ("C-c s" . 'khoj))
|
:bind ("C-c s" . 'khoj))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
- With [[https://github.com/raxod502/straight.el][straight.el]]
|
**** Using [[https://github.com/raxod502/straight.el][Straight.el]]
|
||||||
- Add below snippet to your ~/.emacs.d/init.el or .emacs config file and execute it.
|
Add below snippet to your Emacs config file
|
||||||
#+begin_src elisp
|
#+begin_src elisp
|
||||||
;; Khoj Package for Semantic Search
|
;; Install Khoj Package using Straight.el
|
||||||
(use-package khoj
|
(use-package khoj
|
||||||
:after org
|
:after org
|
||||||
:straight (khoj :type git :host github :repo "debanjum/khoj" :files (:defaults "src/interface/emacs/khoj.el"))
|
:straight (khoj :type git :host github :repo "debanjum/khoj" :files (:defaults "src/interface/emacs/khoj.el"))
|
||||||
:bind ("C-c s" . 'khoj))
|
:bind ("C-c s" . 'khoj))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
- With [[https://github.com/quelpa/quelpa#installation][Quelpa]]
|
|
||||||
- Ensure [[https://github.com/quelpa/quelpa#installation][Quelpa]], [[https://github.com/quelpa/quelpa-use-package#installation][quelpa-use-package]] are installed
|
|
||||||
- Add below snippet to your ~/.emacs.d/init.el or .emacs config file and execute it.
|
|
||||||
#+begin_src elisp
|
|
||||||
;; Khoj Package
|
|
||||||
(use-package khoj
|
|
||||||
:after org
|
|
||||||
:quelpa (khoj :fetcher url :url "https://raw.githubusercontent.com/debanjum/khoj/master/src/interface/emacs/khoj.el")
|
|
||||||
:bind ("C-c s" . 'khoj))
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Usage
|
** Usage
|
||||||
1. Open Query Interface on Client
|
1. Open Query Interface on Client
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user