aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/rul-lisp/packages/rul-bindings.el
blob: 68ce46b53d7cbdc64df5a9c3f25a6ccaed9a8ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
;; Global keybindings
(global-set-key (kbd "C-c R") 'revert-buffer)
(global-set-key (kbd "C-c w") 'whitespace-cleanup)

;; Em dash (not a hyphen, not an en dash).  C-x 8 _ m does this natively;
;; C-- is the short form.
(global-set-key (kbd "C--") (lambda () (interactive) (insert ?—)))

;; 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)

(which-key-mode 1) ; Built into Emacs 30

(provide 'rul-bindings)
nihil fit ex nihilo