Skip to content

Commit

Permalink
Change: Load org only when needed
Browse files Browse the repository at this point in the history
Closes #120.
  • Loading branch information
alphapapa committed Aug 15, 2022
1 parent 67fd80c commit f7ce396
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Helm and Ivy are also supported. Note that the =helm= and =ivy= packages are no

*Changed*
+ Option =magit-todos-exclude-globs= now excludes the `.git/` directory by default. (Thanks to [[https://github.com/Amorymeltzer][Amorymeltzer]].)
+ Library ~org~ is no longer loaded automatically, but only when needed. (This can reduce load time, especially if the user's Org configuration is complex.) ([[https://github.com/alphapapa/magit-todos/issues/120][#120]]. Thanks to [[https://github.com/meedstrom][Martin Edström]] and [[https://github.com/jsigman][Johnny Sigman]] for suggesting.)

*Internal*
+ Define jumper keys using a Transient suffix.
Expand Down
2 changes: 1 addition & 1 deletion magit-todos.el
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
;;;; Requirements

(require 'cl-lib)
(require 'org)
(require 'grep)
(require 'seq)

Expand Down Expand Up @@ -1044,6 +1043,7 @@ if the process's buffer has already been deleted."

(defun magit-todos--format-org (item)
"Return ITEM formatted as from an Org file."
(require 'org)
(magit-todos--fontify-like-in-org-mode
(concat (magit-todos-item-org-level item) " "
(magit-todos-item-keyword item) " "
Expand Down

0 comments on commit f7ce396

Please sign in to comment.