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