khoj/src/interface/emacs
Debanjum Singh Solanky 1c40f97114 Merge branch 'master' of github.com:debanjum/khoj into modularize-api-and-increase-typing
- Conflicts:
  - src/interface/emacs/khoj.el
    Use our update to `config-url', use their `url-request-method'
2022-10-19 16:46:53 +05:30
..
khoj.el Merge branch 'master' of github.com:debanjum/khoj into modularize-api-and-increase-typing 2022-10-19 16:46:53 +05:30
README.org Fix URL for khoj.el quelpa setup instructions 2022-07-29 23:01:04 -04:00

Emacs Khoj

An Emacs interface for Khoj

Requirements

  • Install and Run Khoj

Installation

  • Direct Install

    • 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

        ;; Khoj Package
        (use-package khoj
          :load-path "~/.emacs.d/lisp/khoj.el"
          :bind ("C-c s" . 'khoj))
  • With straight.el

    • Add below snippet to your ~/.emacs.d/init.el or .emacs config file and execute it.

        ;; Khoj Package for Semantic Search
        (use-package khoj
          :after org
          :straight (khoj :type git :host github :repo "debanjum/khoj" :files (:defaults "src/interface/emacs/khoj.el"))
          :bind ("C-c s" . 'khoj))
  • With Quelpa

    • Ensure Quelpa, quelpa-use-package are installed
    • Add below snippet to your ~/.emacs.d/init.el or .emacs config file and execute it.

        ;; 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))

Usage

  1. Open Query Interface on Client

  2. Query Incrementally in Natural Language e.g "What is the meaning of life?" "What are my life goals?"
  3. Apply filters to narrow down results further Include/Exclude specific words or date range from results by updating query with below query format e.g `What is the meaning of life? -god +none dt:"last week"`