aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/general.el
diff options
context:
space:
mode:
authorRaul Benencia <rul@kalgan.cc>2021-04-28 09:36:36 -0700
committerRaul Benencia <rul@kalgan.cc>2021-04-28 09:36:36 -0700
commit7f84553003f07f29210ffc7ff0910a78375bb665 (patch)
tree42b9c97f4bf35c1feb17d106abbc21a58bf27682 /.emacs.local.d/general.el
parent14762f0e1fb80c7328989b01634b0c81cce40fb3 (diff)
em-dash
Diffstat (limited to '.emacs.local.d/general.el')
-rw-r--r--.emacs.local.d/general.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.local.d/general.el b/.emacs.local.d/general.el
index 0e569f6..ced9332 100644
--- a/.emacs.local.d/general.el
+++ b/.emacs.local.d/general.el
@@ -51,6 +51,13 @@
;; compile
(global-set-key [f12] 'compile)
+(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)
+
;; ------
;; General config BS
;; ------
nihil fit ex nihilo