Add org-lookup-dnd config

This commit is contained in:
Adam Goldsmith 2020-04-14 21:37:48 -04:00
parent 9b8a96cbb3
commit 57c0232b89

View File

@ -947,6 +947,22 @@
:bind ("C-S-<right>" . forward-mark)
:bind ("C-S-<down>" . show-marks))
(use-package org-lookup-dnd
:config
(setq org-lookup-dnd-chose 'org-lookup-dnd-chose-ivy
org-lookup-dnd-link-format "[[pdf:%s::%d][%s]]")
(setq org-lookup-dnd-sources t)
;; '(("~/Documents/DnD/Books/D&D 5E - Player's Handbook.pdf" 1 4 4)
;; ("~/Documents/DnD/Books/D&D 5E - Dungeon Master's Guide.pdf" 0 317 320)
;; ("~/Documents/DnD/Books/D&D 5E - Monster Manual.pdf" 1 352 353)))
(setq org-lookup-dnd-extra-index "~/Documents/DnD/dnd-phb-5e-index/indexes.org")
;; roughly org-lookup-dnd-parse, but without the pdf parsing
(setq org-lookup-dnd-db
(make-hash-table :test #'equal :size 256 :rehash-size 2.0 :rehash-threshold .97))
(org-lookup-dnd-parse-extras)
(org-lookup-dnd-dump-vars-to-file '(org-lookup-dnd-db) org-lookup-dnd-db-file))
;;; Local Variables
(add-to-list 'safe-local-eval-forms '(outline-hide-body))
;; Local Variables: