Giter Site home page Giter Site logo

Comments (7)

bdarcus avatar bdarcus commented on August 19, 2024

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?

from citar.

bdarcus avatar bdarcus commented on August 19, 2024

Also, see this Doom PR.

doomemacs/doomemacs#7168

It may suggest slight tweaks to the use-package?

from citar.

deb75 avatar deb75 commented on August 19, 2024

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

from citar.

bdarcus avatar bdarcus commented on August 19, 2024

Makes sense.

I'm considering somehow making those indicators available, perhaps through an optional extension file.

See #770.

from citar.

tabroughton avatar tabroughton commented on August 19, 2024

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.

from citar.

bdarcus avatar bdarcus commented on August 19, 2024

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.

from citar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.