aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/rul-lisp/packages/rul-bindings.el
diff options
context:
space:
mode:
authorRaul Benencia <id@rbenencia.name>2026-08-11 22:40:41 -0700
committerRaul Benencia <id@rbenencia.name>2026-08-11 22:48:29 -0700
commit2bce761511657ff6b99ac0d587013a6d30da2467 (patch)
tree351309ebc9c3bacc9408ea9a6a4dd4fedaf265c0 /.emacs.d/rul-lisp/packages/rul-bindings.el
parentc3fc90c677d1f010cb012d54eb20b0b78e1de392 (diff)
emacs: drop the em-dash helper command
C-x 8 _ m inserts an em dash out of the box, so the named command was only there to hang C-- on. Keep the short binding, lose the defun.
Diffstat (limited to '.emacs.d/rul-lisp/packages/rul-bindings.el')
-rw-r--r--.emacs.d/rul-lisp/packages/rul-bindings.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/.emacs.d/rul-lisp/packages/rul-bindings.el b/.emacs.d/rul-lisp/packages/rul-bindings.el
index 0ae80f3..5421264 100644
--- a/.emacs.d/rul-lisp/packages/rul-bindings.el
+++ b/.emacs.d/rul-lisp/packages/rul-bindings.el
@@ -2,12 +2,9 @@
(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)
+;; 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.
nihil fit ex nihilo