-
Notifications
You must be signed in to change notification settings - Fork 2
/
spa_keybindings.el
35 lines (30 loc) · 1.35 KB
/
spa_keybindings.el
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; spa_keybindings.el ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;
;; Occur ;;
;;;;;;;;;;;
(global-set-key (kbd "C-c C-o o") 'occur)
(global-set-key (kbd "C-c C-o m") 'multi-occur-in-matching-buffers)
(global-set-key "\C-\M-]" 'indent-region)
(global-set-key (kbd "C-c m") 'man)
;; Insert Pair of quotes
;; Use M-1 M-" to wrap current word in quotes
(global-set-key (kbd "M-\"") 'insert-pair)
;;;;;;;;;;;;;;;;;;;;;;
;; Custom Functions ;;
;;;;;;;;;;;;;;;;;;;;;;
(global-set-key (kbd "C-c A") 'spa/acro-search)
(global-set-key (kbd "C-c n") 'spa/insert-common-name)
(global-set-key "\C-cw" 'swap-quotes)
(global-set-key (kbd "C-x p") 'copy-full-path-to-kill-ring)
;; (global-set-key (kbd "C-c o") 'spa/open-finder)
(global-set-key (kbd "C-c e") 'spa/wiki)
(global-set-key (kbd "C-c b n") 'comment-box)
(global-set-key (kbd "C-c b w") 'spa/comment-box)
(global-set-key (kbd "C-c f") 'spa/plot-to-file-or-not)
(global-set-key "\C-c\C-xs" 'just-one-space-in-region)
(global-set-key (kbd "C-c L") 'org-toggle-latex-fragment)
(global-set-key (kbd "C-c k") 'delete-this-buffer-and-file)
(global-set-key (kbd "C-c t") 'transpose-buffers)
;; (global-set-key (kbd "C-`") 'switch-to-previous-buffer)