aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-09-10 23:27:32 -0700
committerGravatar Tom Willemse2026-09-12 01:00:38 -0700
commitb33e531eac8c10116c8396942fe28ffbfc6db35e (patch)
treec087e277ac66285de64d0edf703bf349770848ae /emacs
parentafb68627a948a64eda956c34ed5032831be4e37e (diff)
downloadnew-dotfiles-b33e531eac8c10116c8396942fe28ffbfc6db35e.tar.gz
new-dotfiles-b33e531eac8c10116c8396942fe28ffbfc6db35e.zip
emacs: Fix issue with ‘C-c o’ not being a prefix key
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org41
1 files changed, 21 insertions, 20 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 4244a2f..f67f424 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -166,39 +166,40 @@ Also install =markdown-indent-mode= which is very much like =org-indent-mode= (b
* Org Mode
#+begin_src emacs-lisp
- (use-package org
- :bind (("C-c o c" . org-capture)
- ("C-c o a" . org-agenda)
- ("C-c o l" . org-store-link)
- ("C-c o b" . org-switchb))
- :config
- (add-hook 'org-mode-hook 'visual-line-mode)
- (add-hook 'org-mode-hook 'org-indent-mode))
+ (use-package org
+ :init (define-key global-map (kbd "C-c o") (make-sparse-keymap))
+ :bind (("C-c o c" . org-capture)
+ ("C-c o a" . org-agenda)
+ ("C-c o l" . org-store-link)
+ ("C-c o b" . org-switchb))
+ :config
+ (add-hook 'org-mode-hook 'visual-line-mode)
+ (add-hook 'org-mode-hook 'org-indent-mode))
- (use-package org-capture
- :config
- (map-put org-capture-templates "t"
- '("A simple TODO item" entry (file "") "* TODO %?
+ (use-package org-capture
+ :config
+ (map-put org-capture-templates "t"
+ '("A simple TODO item" entry (file "") "* TODO %?
:PROPERTIES:
:CREATED: %U
:END:"))
- (map-put org-capture-templates "d"
- '("A simple DONE item" entry (file "") "* DONE %?
+ (map-put org-capture-templates "d"
+ '("A simple DONE item" entry (file "") "* DONE %?
:PROPERTIES:
:CREATED: %U
:END:"))
- (map-put org-capture-templates "n"
- '("A simple note" entry (file "") "* Note taken on %U
+ (map-put org-capture-templates "n"
+ '("A simple note" entry (file "") "* Note taken on %U
:PROPERTIES:
:CREATED: %U
:END:
%?"))
- (map-put org-capture-templates "N"
- '("A simple note (on current task)" item (clock) "- Note taken on %U: \\\\
+ (map-put org-capture-templates "N"
+ '("A simple note (on current task)" item (clock) "- Note taken on %U: \\\\
%?"))
- (map-put org-capture-templates "r"
- '("An Operational Request came in" entry (file "") "* TODO Operation Request %^U
+ (map-put org-capture-templates "r"
+ '("An Operational Request came in" entry (file "") "* TODO Operation Request %^U
:PROPERTIES:
:CREATED: %U
:END: