Add example for changes to straight to load tables

This commit is contained in:
Howard Abrams 2022-02-28 10:42:20 -08:00
parent 60c7df4acd
commit d7cd7b4387

View file

@ -21,7 +21,7 @@ Neither this, nor the [[https://gitlab.com/howardabrams/emacs-rpgdm][rpgdm proje
#+BEGIN_SRC emacs-lisp :tangle no #+BEGIN_SRC emacs-lisp :tangle no
(add-to-list 'load-path (expand-file-name "~/other/rpgdm")) (add-to-list 'load-path (expand-file-name "~/other/rpgdm"))
(add-to-list 'load-path (expand-file-name "~/other/rpgdm-ironsworn")) (add-to-list 'load-path (expand-file-name "~/other/emacs-ironsworn"))
#+END_SRC #+END_SRC
Or better yet, use something like [[https://github.com/raxod502/straight.el][straight]]: Or better yet, use something like [[https://github.com/raxod502/straight.el][straight]]:
@ -34,6 +34,16 @@ Or better yet, use something like [[https://github.com/raxod502/straight.el][str
'(el-patch :type git :host gitlab :repo "howardabrams/emacs-ironsworn")) '(el-patch :type git :host gitlab :repo "howardabrams/emacs-ironsworn"))
#+END_SRC #+END_SRC
Hrm. If you do use =straight=, you need to set the =rpgdm-ironsworn-project= variable to the directory where you clone it, as the code needs to load data files from it. This is what Im using (and yeah, I need to clean this):
#+BEGIN_SRC emacs-lisp :tangle no
(use-package rpgdm-ironsworn
:straight (:local-repo "~/other/emacs-ironsworn")
:init
(setq rpgdm-ironsworn-project (expand-file-name "~/other/emacs-ironsworn"))))))
#+END_SRC
Next, create an org file, and either turn on the =rpgdm-mode= (minor mode), or simply define a globally accessible shortcut: Next, create an org file, and either turn on the =rpgdm-mode= (minor mode), or simply define a globally accessible shortcut:
#+BEGIN_SRC emacs-lisp :tangle no #+BEGIN_SRC emacs-lisp :tangle no