~cytrogen/.emacs.d

ref: b917a65585691f21847821e0a042de1f4e75de42 .emacs.d/config/keybindings.el -rw-r--r-- 1.6 KiB
b917a655 — Cytrogen feat(reading): 添加 URL 阅读模式和增强 EPUB/PDF 体验 a month 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
47
48
49
;;; 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)
(global-set-key (kbd "C-c f") 'elfeed)        ; RSS feeds
(global-set-key (kbd "C-c e") 'mu4e)          ; Email

;; 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
(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 m") 'my/blog-export-monthly)  ; alias
(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)
(global-set-key (kbd "C-c b i") 'my/blog-insert-image)

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