I'm in the process of "modularizing" my config file and ran into a problem involving elisp macros.
Because of the way in which I'm defining my configuration modules, I ended up with a bunch of code blocks as the following:
(with-eval-after-load (expand-file-name
"latex.el"
j/config-path)
(leader
:infix "o"
"e" '(ebib :which-key "ebib"))
(some-function x y z))
Since I was repeting that a lot, I tried to define a macro to have more readable config files. It is my first time writing macros in elisp, so this was what I ended up with:
(defmacro j/con-load (module &rest funcs)
"TODO doc goes here"
`(with-eval-after-load
(expand-file-name (concat ,module ".el" j/config-path))
funcs))
I'm trying to call it with
(j/con-load "latex"
(leader
:infix "o"
"e" '(ebib :which-key "ebib"))
(some-function x y z))
but it just doesn't work.
What am I doing wrong here?