From 05c9146f2e2adc7b2357b398cb71175d3bdfac07 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Fri, 4 Mar 2022 07:39:33 +0100 Subject: [PATCH] Fix setting my org-mode global key bindings --- README.org | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index 931b0dc..a7d02a2 100644 --- a/README.org +++ b/README.org @@ -1211,14 +1211,12 @@ advising to override ~TeX-brace-count-line~ with ~my-TeX-brace-count-line~. #+caption: Activate =Org=. #+name: lst:activate-org #+begin_src emacs-lisp - (when (cl-every #'fboundp '(org-agenda - org-capture - org-store-link - org-store-link-global)) + (when (cl-every #'fboundp '(org-agenda org-capture)) (global-set-key (kbd "C-c a") #'org-agenda) (global-set-key (kbd "C-c c") #'org-capture) - (global-set-key (kbd "C-c l") #'org-store-link) - (global-set-key (kbd "C-c C-l") #'org-insert-link-global)) + (with-eval-after-load 'ol + (global-set-key (kbd "C-c l") #'org-store-link) + (global-set-key (kbd "C-c C-l") #'org-insert-link-global))) #+end_src *** Org customization