2025-12-14 04:51:24 +11:00
|
|
|
;; -*- lexical-binding: t -*-
|
|
|
|
|
|
|
|
|
|
(define-prefix-command 'orgmode-map)
|
|
|
|
|
(global-set-key (kbd "C-c n") 'orgmode-map)
|
|
|
|
|
|
|
|
|
|
(define-key orgmode-map (kbd "a") #'org-agenda)
|
|
|
|
|
(define-key orgmode-map (kbd "n") #'org-capture)
|
2025-12-14 06:09:17 +11:00
|
|
|
(define-key orgmode-map (kbd "t") #'org-todo-list)
|
2025-12-14 04:51:24 +11:00
|
|
|
|
2025-12-14 09:04:11 +11:00
|
|
|
|
|
|
|
|
(setq duplicate-line-final-position 1)
|
|
|
|
|
(global-set-key (kbd "M-p") #'duplicate-dwim)
|
|
|
|
|
(global-set-key (kbd "C-c y") #'copy-from-above-command)
|
|
|
|
|
(global-set-key (kbd "s-k") #'kill-current-buffer)
|
2025-12-15 01:04:39 +11:00
|
|
|
(global-set-key (kbd "C-c q r") #'restart-emacs)
|
2025-12-15 01:15:26 +11:00
|
|
|
(global-set-key (kbd "C-c k") nil)
|
2025-12-14 04:51:24 +11:00
|
|
|
|
2025-12-14 21:59:06 +11:00
|
|
|
(when (eq system-type 'darwin)
|
|
|
|
|
(global-set-key (kbd "s-x") #'execute-extended-command))
|
2025-12-14 04:51:24 +11:00
|
|
|
|
|
|
|
|
(provide 'init-bindings)
|