Add section separators to khoj.el for easier code traversal

This commit is contained in:
Debanjum Singh Solanky 2023-01-19 23:36:54 -03:00
parent 7516435a0b
commit 44bbc0a417

View file

@ -50,7 +50,7 @@
(require 'json)
(require 'transient)
;; -------------------------
;; Khoj Static Configuration
;; -------------------------
@ -84,7 +84,7 @@
(const "image")
(const "music")))
;; --------------------------
;; Khoj Dynamic Configuration
;; --------------------------
@ -160,7 +160,7 @@ Use `which-key` if available, else display simple message in echo area"
nil t t))
(message "%s" (khoj--keybindings-info-message))))
;; -----------------------------------------------
;; Extract and Render Entries of each Content Type
;; -----------------------------------------------
@ -247,7 +247,7 @@ Use `which-key` if available, else display simple message in echo area"
((and (member 'markdown enabled-content-types) (or (equal file-extension "markdown") (equal file-extension "md"))) "markdown")
(t khoj-default-content-type))))
;; --------------
;; Query Khoj API
;; --------------
@ -304,7 +304,7 @@ Render results in BUFFER-NAME."
(t (fundamental-mode))))
(read-only-mode t)))
;; ------------------
;; Incremental Search
;; ------------------
@ -379,6 +379,7 @@ Render results in BUFFER-NAME."
(read-string khoj--query-prompt))))
;; ---------
;; Khoj Menu
;; ---------
@ -424,7 +425,7 @@ Render results in BUFFER-NAME."
("u" "Update" khoj--update-command)
("q" "Quit" transient-quit-one)]])
;; ----------
;; Entrypoint
;; ----------