Code Monkey home page Code Monkey logo

Comments (4)

gilbertw1 avatar gilbertw1 commented on May 18, 2024

You probably want to autoload the functions your planning on invoking using the :commands key. Something like this:

(def-package! ace-jump-mode
  :commands (ace-jump-mode))

In the above block, the function ace-jump-mode will be autoloaded and will be available. Since the package is lazy loaded it won't be loaded until a command listed in the :commands list is invoked.

Normally, you'll want to include any commands you'd like to call in this :commands list, so they'll be autoloaded and available. Your other option is to use :demand t, which will force the package to be loaded automatically at startup, however this will slow your startup time down a bit.

Hope that helps!

from doomemacs.

gilbertw1 avatar gilbertw1 commented on May 18, 2024

I'll also throw out there, that avy (which is very similar) is already included in this emacs config. You may want to try it out:

https://github.com/abo-abo/avy

from doomemacs.

vsr625 avatar vsr625 commented on May 18, 2024

Thanks for replying, both :command and :demand t worked fine and solved my issue, I sure will do look into avy as well.
One last question though, in org mode, is there any way to change the checklist status to partially completed using a keybinding?

from doomemacs.

hlissner avatar hlissner commented on May 18, 2024

One last question though, in org mode, is there any way to change the checklist status to partially completed using a keybinding?

@vsr625 I just pushed one I've kept to myself for a while (I have a lot of org-mode changes in the pipeline).

+org/dwim-at-point (currently bound to RET in normal mode) now cycles between the three states ([ ] => [-] => [X]).

Also, to expand on what gilbertw1 was saying: use-package-always-defer is set to t in my config (the default is nil in use-package), so packages won't be automatically loaded (without :demand t or being autoloaded, as mentioned above).

from doomemacs.

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.