Closed deb75 closed 1 year ago
It's defined by the cl-defstruct
.
Do you get the error after loading citar?
Like if you require it manually first, does it still complain?
Also, see this Doom PR.
https://github.com/doomemacs/doomemacs/pull/7168
It may suggest slight tweaks to the use-package
?
Got it !
I remember having had the same issue with another package.
The point is that the definition of citar-indcator-create
is not available outside of the package.
Then this :
(use-package ...)
(defvar ... (citar-indicator-create ...))
fails, because the function is not found, although being defined in the package.
To make it work, it is needed to put defvar
statements within the use-package
call :
(use-package ...
:config
(defvar ... (citar-indicator-create ...))
)
and it works like this, much like in the doom link you provided.
Thanks
Regards
Makes sense.
I'm considering somehow making those indicators available, perhaps through an optional extension file.
See #770.
I too have just had this same issue. I also wonderred if these couldn't be a part of the package and activated in some way with something like (setq citar-use-default-indicators t)
or something like that. Glad to find this issue which has solved my issue.
You mean for the icon-based ones?
The challenge is I don't want to require all-the-icons
, so need to figure out a way to avoid that, but still make it easier.
EDIT
Maybe a short-term solution can be wrapping the example in with-eval-after-load
, or showing it in a use-package
context.
I also want to experiment with SVG icons, but was waiting on a fix to svg-lib
.
Couple of updates on this:
citar-indicator
to autoload
I followed the wiki's indicator page and integrated it into my configuration :
When starting emacs, it complains the function "citar-indicatro-create" is not found. Indeed, I did not find a
(defun citar-indicator-create ...)
in the source.I tried also to put the indicator lines outside of the
(use-package )
section. It still complains.However, this function (citar-indicator-create) is called in the source without any errors, I wonder then why it complains when I add the indicator customizations ?
I remember having had the same trouble for another package, the given function had to be called in a special way. Could you help me to make it work ?
Regards