~cytrogen/.emacs.d

ref: 504e0080a3f94c9824ac305b1a24b30c7d1fb051 .emacs.d/config/keybindings.el -rw-r--r-- 1.4 KiB
504e0080 — HallowDem feat: 添加博客图片插入功能 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
;;; keybindings.el --- Global keybindings and shortcuts -*- lexical-binding: t -*-

;; Copyright (C) 2024 Cytrogen

;; This file contains:
;; - Global key bindings
;; - Function key mappings
;; - Custom shortcuts

;;; Commentary:

;; Centralized location for all global keybindings to make them easy
;; to find, modify, and avoid conflicts.

;;; Code:

;; Org-mode Keybindings
;; Core Org workflow shortcuts
(global-set-key (kbd "C-c c") 'org-capture)
(global-set-key (kbd "C-c a") 'org-agenda)
(global-set-key (kbd "C-c C-w") 'org-refile)
(global-set-key (kbd "C-c w") 'my/quick-refile)
(global-set-key (kbd "C-c o") 'my/open-org-file)

;; Application Shortcuts
;; Quick access to frequently used functions
(global-set-key (kbd "C-c m") 'mastodon)

;; File and Navigation Shortcuts
;; File operations and navigation
(global-set-key (kbd "C-c i") 'my/open-init-file)
(global-set-key (kbd "C-c r") 'my/reload-init-file)

;; Custom Function Bindings
;; Shortcuts for custom utility functions

;; Blog Workflow Shortcuts
;; Monthly blog post management
(global-set-key (kbd "C-c b c") 'my/blog-create-monthly)
(global-set-key (kbd "C-c b o") 'my/blog-open-current-monthly)
(global-set-key (kbd "C-c b e") 'my/blog-export-monthly)
(global-set-key (kbd "C-c b p") 'my/blog-export-post)
(global-set-key (kbd "C-c b n") 'my/blog-create-post-from-entry)

(provide 'keybindings)
;;; keybindings.el ends here