blob: 0ae80f33a6f8824e32fa4ec043b579562a445f88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
;; Global keybindings
(global-set-key (kbd "C-c R") 'revert-buffer)
(global-set-key (kbd "C-c w") 'whitespace-cleanup)
(defun help/insert-em-dash ()
"Inserts an EM-DASH (not a HYPEN, not an N-DASH)"
(interactive)
(insert "—"))
(global-set-key (kbd "C--") #'help/insert-em-dash)
;; Zoom. `text-scale-adjust' keeps reading +, -, and 0 after being
;; invoked, so it repeats like a hydra without needing one.
(global-set-key (kbd "C-c z") #'text-scale-adjust)
(use-package which-key
:ensure t
:config
(which-key-mode))
(provide 'rul-bindings)
|