aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/elisp/org-bookmark.el
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-06-11 17:28:03 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-06-11 17:28:03 +0100
commit19619813d1fa956f2970ae058c70d49e0c1b28ac (patch)
tree0ed84d75d1c5f4872980e073ccdc7f19552fb116 /Emacs/.config/emacs/elisp/org-bookmark.el
parent3cb1a2b6167f3f2b6fd23506f590e104d4c3f7bc (diff)
downloaddotfiles-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/emacs/elisp/org-bookmark.el')
-rw-r--r--Emacs/.config/emacs/elisp/org-bookmark.el5
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")