aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/rul-lisp/packages/rul-bindings.el
blob: 5421264f7dd4d72fabf84c37b443ca7feae5c75c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;; 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)

(use-package which-key
  :ensure t
  :config
  (which-key-mode))

(provide 'rul-bindings)
nihil fit ex nihilo