From 7d580cd6bf25f1f81761b099aa0fc8f5669f7f49 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sun, 26 Mar 2023 20:12:21 +0200 Subject: Note down a couple of itches with forge --- guides/emacs/development.org | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'guides/emacs') 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 + -- cgit v1.2.3