]> git.earman.xyz Git - emacsinit.git/commitdiff
Re-enable tab-only in text mode
authorrush <rearman@r717.net>
Fri, 7 Aug 2026 14:34:11 +0000 (10:34 -0400)
committerrush <rearman@r717.net>
Tue, 11 Aug 2026 20:55:20 +0000 (16:55 -0400)
Ran into annoying issues with not being able to insert tabs in the middle of
lines.

init.el

diff --git a/init.el b/init.el
index 149fbbe619c65307cf6f332b4d322e406d3561d9..bdfdbc6577fa50a1a2998b5b385ae2dfe5acddec 100644 (file)
--- a/init.el
+++ b/init.el
@@ -529,6 +529,7 @@ installed."
   (interactive)\r
   (setq-local tab-width width))\r
 \r
+(keymap-set text-mode-map "<tab>" (lambda () (interactive) (insert "\t")))\r
 ;; (keymap-global-set "<tab>" (lambda () (interactive) (insert "\t")))\r
 \f\r
 ;;; Buffer dealiƋ\r