Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy load it's module #359

Merged
merged 2 commits into from
Feb 8, 2022
Merged

Lazy load it's module #359

merged 2 commits into from
Feb 8, 2022

Conversation

jcs090218
Copy link
Member

To avoid force loading certain modules to increase startup time.

(when (featurep 'whitespace) (whitespace-mode -1))
(when (featurep 'linum) (linum-mode -1))
(when (featurep 'display-line-numbers) (display-line-numbers-mode -1))
(when (featurep 'page-break-lines) (page-break-lines-mode 1))
Copy link
Member Author

Choose a reason for hiding this comment

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

Even calling (minor-mode -1) will load it's module. Avoid doing that can increase startup time.

@jcs090218 jcs090218 merged commit 7ae4630 into master Feb 8, 2022
@jcs090218 jcs090218 deleted the lazy-load branch February 8, 2022 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant