diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-11 17:28:03 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-11 17:28:03 +0100 |
commit | 19619813d1fa956f2970ae058c70d49e0c1b28ac (patch) | |
tree | 0ed84d75d1c5f4872980e073ccdc7f19552fb116 /Emacs/.config | |
parent | 3cb1a2b6167f3f2b6fd23506f590e104d4c3f7bc (diff) | |
download | dotfiles-19619813d1fa956f2970ae058c70d49e0c1b28ac.tar.gz dotfiles-19619813d1fa956f2970ae058c70d49e0c1b28ac.tar.bz2 dotfiles-19619813d1fa956f2970ae058c70d49e0c1b28ac.zip |
(Emacs/elisp)~org-bookmark now auto loads required org functions
Instead of (require 'org) which loads the entire thing and is quite
expensive, let's autoload what we need. In the config we load
org-bookmark before org-mode so we may as well do this.
It's also just good practice regardless.
Diffstat (limited to 'Emacs/.config')
-rw-r--r-- | Emacs/.config/emacs/elisp/org-bookmark.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/elisp/org-bookmark.el b/Emacs/.config/emacs/elisp/org-bookmark.el index 192a75d..e4189f8 100644 --- a/Emacs/.config/emacs/elisp/org-bookmark.el +++ b/Emacs/.config/emacs/elisp/org-bookmark.el @@ -23,7 +23,10 @@ ;;; Code: -(require 'org) +(autoload #'org-heading-components "org") +(autoload #'org-get-tags "org") +(autoload #'org-entry-get "org") +(autoload #'org-make-tags-matcher "org") (defvar +bookmark/file (expand-file-name (concat org-directory "/bookmarks.org"))) (defvar +bookmark/mpv-args "--ytdl-raw-options=force-ipv4= --ytdl-format=22 -v") |