summaryrefslogtreecommitdiff
path: root/guides/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'guides/emacs')
-rw-r--r--guides/emacs/development.org29
1 files changed, 29 insertions, 0 deletions
diff --git a/guides/emacs/development.org b/guides/emacs/development.org
index eeb9ec5..143f102 100644
--- a/guides/emacs/development.org
+++ b/guides/emacs/development.org
@@ -63,3 +63,32 @@ a symbol -- Selects the test that the symbol names, signals an
and returns non-nil if it is selected.
#+end_quote
+* Third-party packages
+** forge
+*** build
+Use =config.mk= to set =LOAD_PATH=:
+#+begin_src makefile
+find-lib = $(dir $(shell emacs -Q -batch \
+ -eval "(require 'find-func)" \
+ -eval "(package-initialize)" \
+ -eval "(require '$(1))" \
+ -eval "(princ (find-library-name \"$(1)\"))"))
+
+sources = ~/src/emacs/magit/lisp
+
+elpa = \
+ closql \
+ compat \
+ dash \
+ emacsql \
+ ghub \
+ markdown-mode \
+ transient \
+ treepy \
+ with-editor \
+ yaml
+elpa_dirs = $(foreach d,$(elpa),$(call find-lib,$(d)))
+
+LOAD_PATH = $(addprefix -L ,$(elpa_dirs) $(sources))
+#+end_src
+