commit 75a68335622369b37d8f48a232efbda8beaa84e4 parent cdb09093b31ebc1cb4fdd6d93ac9366f9f8913f9 Author: Alex Balgavy <alex@balgavy.eu> Date: Thu, 12 May 2022 22:04:17 +0200 emacs: fix typo Diffstat:
M | emacs/config.org | | | 24 | ++++++++++++++++++------ |
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -306,15 +306,27 @@ Install Org and require additional components that I use. :config (require 'org-tempo) (require 'org-habit) - (require 'org-agenda) + (require 'org-agenda)) +#+end_src - :bind - (("C-c a" . org-agenda) - ("C-c n" . org-capture) - ("C-M-<return>" . org-insert-todo-heading) - ("C-c l" . org-store-link))) +*** Key bindings +Global: +#+begin_src emacs-lisp + (za/global-set-key (kbd "C-c a") #'org-agenda) + (za/global-set-key (kbd "C-c n") #'org-capture) + (za/global-set-key (kbd "C-c l") #'org-store-link) #+end_src +Org mode: +#+begin_src emacs-lisp + (defun za/keybinds-org-mode () + "Function to set org-mode keybindings, run via org-mode-hook." + (define-key org-mode-map (kbd "C-M-<return>") #'org-insert-todo-heading) + (define-key org-mode-map (kbd "C-c M-y") #'org-yank-link-url) + (define-key org-mode-map (kbd "C-c N") #'org-noter)) + + (add-hook 'org-mode-hook #'za/keybinds-org-mode) +#+end_src *** Nicer bullets In org mode, I want to use bullets instead of stars, so I also install ~org-bullets~.