From d04c1df3725e0695774e2968bc4bb26a041e9512 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sun, 5 Nov 2023 20:39:59 +0100 Subject: [PATCH] pinwheel: Map `meta-c` to comment code in `emacs` To accomodate for the fact that the original `C-x C-;` cannot be sent with escape sequences --- hosts/pinwheel/modules/emacs/config.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/pinwheel/modules/emacs/config.org b/hosts/pinwheel/modules/emacs/config.org index 127c154..1eb76ca 100644 --- a/hosts/pinwheel/modules/emacs/config.org +++ b/hosts/pinwheel/modules/emacs/config.org @@ -362,7 +362,11 @@ Setup prefix for keybindings. :prefix "," :global-prefix "C-SPC") #+END_SRC - +** Comment code +#+BEGIN_SRC emacs-lisp + (global-unset-key [(meta c)]) + (global-set-key [(meta c)] 'comment-line) +#+END_SRC ** Motion (using Avy) #+BEGIN_SRC emacs-lisp (use-package avy)