From 2bce761511657ff6b99ac0d587013a6d30da2467 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Tue, 11 Aug 2026 22:40:41 -0700 Subject: 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. --- .emacs.d/rul-lisp/packages/rul-bindings.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to '.emacs.d') 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. -- cgit v1.2.3