Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Fix lazy loading #1

Merged
merged 1 commit into from
Jan 12, 2023
Merged

Fix lazy loading #1

merged 1 commit into from
Jan 12, 2023

Conversation

lexa
Copy link
Contributor

@lexa lexa commented Jan 10, 2023

Fix lazy loading of the darkman.el package.

Actively loading a package (load "darkman.el") works fine, but if you have a lot of packages, loading all of them takes a lot of time. It is more effecent to have the package loaded lazily on demand.

Some one might want to use `darkman-set` and `darkman-get-theme`
directly and the modules should be loaded lazily
@lexa lexa reopened this Jan 11, 2023
@lexa
Copy link
Contributor Author

lexa commented Jan 11, 2023

I've re-based the changes on top of main, could you please merge this PR?

@grtcdr
Copy link
Owner

grtcdr commented Jan 11, 2023

Could you please take into consideration my comments on the change you introduced in the README?

@grtcdr
Copy link
Owner

grtcdr commented Jan 11, 2023

Sometimes GitHub has issues notifying contributors of an active review, are you able to see the review comments?

@lexa
Copy link
Contributor Author

lexa commented Jan 12, 2023

Could you please take into consideration my comments on the change you introduced in the README?

Sure. I've split readme.md changes into separate PR: #3

@grtcdr
Copy link
Owner

grtcdr commented Jan 12, 2023

Thanks a lot!

README.org Outdated
@@ -16,6 +16,12 @@ Add the package to the =load-path= and then require it like so:
(add-to-list 'load-path "darkman")
(require 'darkman)
#+end_src
** For [[https://github.com/radian-software/straight.el][straight.el]] users:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would personally prefer it if this were not a heading, just a normal sentence.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I take back what I said, I'd much rather keep the installation section as short as possible, and for two reasons:

  • There's a bazillion ways to install something in Emacs, there's too much boilerplate involved.
  • straight.el users can automatically determine what to put in their configurations to use this package the straight.el-way -- and same goes for use-package, however I would make an exception to this once 29.0.5 is released, at which point the package is built-in and therefore I'd be much more inclined to include the boilerplate associated with it.

@grtcdr
Copy link
Owner

grtcdr commented Jan 12, 2023

Thank you for your patience and your contribution :)

@grtcdr grtcdr merged commit 9d48055 into grtcdr:main Jan 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants