-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit_notdeft.el
44 lines (38 loc) · 1.37 KB
/
init_notdeft.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
;;; init_notdeft.el --- Full-text search plugin for use with notes and such
;; ==============================================================================
;; NotDeft Setup
;; ==============================================================================
;; Written by Jeff Russell
;; Updated: 2020-08-22 1518
;; jpowellrussell.com
;; ------------------------------------------------------------------------------
;;; Commentary:
;; A faster full-text search than Deft, meant for use with lots of files. Not
;; quite as handy as Deft for quick note-taking, but I'm not currently using
;; Deft for creating notes, so that's okay.
;;; Code:
(use-package notdeft
:straight
(:type git :host github :repo "hasu/notdeft")
:defer t
:hook
(org-mode-local-variables-hook . default-notdeft-hook)
(after-init-hook . notdeft-mode)
:bind
("C-c n d" . notdeft)
:init
(setq notdeft-allow-org-property-drawers t)
:config
(require 'notdeft-autoloads)
(setq notdeft-directories '("~/dropbox/khs/slipbox/"))
;; Full path of "notdeft-xapian" executable.
(let ((x
(let ((default-directory
(file-name-directory
(file-truename (locate-library "notdeft")))))
(file-truename "xapian/notdeft-xapian"))))
(setq notdeft-xapian-program
(and (file-executable-p x) x)))
)
(provide 'init_notdeft)
;;; init_notdeft.el ends here