From 57c0232b899ff632823c57b1dbf204e1fb13153c Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 14 Apr 2020 21:37:48 -0400 Subject: [PATCH] Add org-lookup-dnd config --- .emacs.d/init.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index df4d3ce..2714d74 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -947,6 +947,22 @@ :bind ("C-S-" . forward-mark) :bind ("C-S-" . 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: