2 ms·
Have you tried hooking self-insert-command to the modes you'd use it on? Like prog mode and fundamental. The only corner case I can think of is if you'd like to
by lvass 5y ago
Have you tried hooking self-insert-command to the modes you'd use it on? Like prog mode and fundamental. The only corner case I can think of is if you'd like to tab-insert in org-mode and also expand headings using tab.
Edit: Try this:
(defun indent-for-tab-command ()
(interactive)
(insert-char #x20 4))