]> git.earman.xyz Git - emacsinit.git/commitdiff
Make tab really be tab, no question about it
authorrearman <rearman@r717.net>
Wed, 1 Apr 2026 13:17:23 +0000 (09:17 -0400)
committerrearman <rearman@r717.net>
Wed, 1 Apr 2026 13:17:23 +0000 (09:17 -0400)
Tab key now inserts a hard "\t" character, meaning that tab-expansion stuff is
covered by 'C-i'.  Fine by me.

init.el
re/re-bindings.el

diff --git a/init.el b/init.el
index 79dd146f969f4f7def24c79dbd75ce9cd6b00cc8..96f64a1f9a09db5cd66da6d6de86edddc1ba5209 100644 (file)
--- a/init.el
+++ b/init.el
@@ -31,7 +31,8 @@
 \f
 ;; Tabs
 (setq-default indent-tabs-mode 'only
-             tab-width 8)
+             tab-width 8
+             backward-delete-char-untabify-method nil)
 
 (advice-add 'indent-to :around
            (lambda (orig-fun column &rest args)
index ed282b7873ea9f12b5044e174b6a990b2feeb03d..263a58da34db418bb154b608316e08fa4657e52c 100644 (file)
@@ -10,6 +10,7 @@
 (keymap-global-set "C-x c" #'delete-frame) ; delete a frame without asking about saving files
 \f
 ;; Editing Bindings
+(keymap-global-set "<tab>" (lambda () (interactive) (insert "\t")))
 (keymap-global-set "<insert>" nil) ; I keep toggliĊ‹ overwrite-mode haply
 (keymap-global-set "C-\\" #'undo-redo) ; issues with C-? sometimes
 (keymap-global-set "C-S-K" #'kill-whole-line)