]> git.eshelyaron.com Git - emacs.git/commitdiff
Make indent-tabs-mode into a regular mode instead of just a variable
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 18 Jul 2021 13:24:55 +0000 (15:24 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 18 Jul 2021 13:24:55 +0000 (15:24 +0200)
* lisp/simple.el (indent-tabs-mode): Make into a minor mode (bug#6276).

etc/NEWS
lisp/simple.el

index f547e2531c60be19066a0ededa62d13b76381561..6e2d5cc9a6f7a9568c01881d7750825e88d80ffd 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2222,6 +2222,9 @@ This command, called interactively, toggles the local value of
 
 ** Miscellaneous
 
+---
+*** 'indent-tabs-mode' is now a global minor mode instead of just a variable.
+
 ---
 *** New user option 'save-place-abbreviate-file-names'.
 
index 322693f631a918d1af5d94a54d66cbbd08faaa44..6de219022100e2711bcd10ed152af16222a3da4f 100644 (file)
@@ -6682,6 +6682,10 @@ or \"mark.*active\" at the prompt."
   ;; It's defined in C/cus-start, this stops the d-m-m macro defining it again.
   :variable (default-value 'transient-mark-mode))
 
+(define-minor-mode indent-tabs-mode
+  "Toggle whether indentation can insert TAB characters."
+  :global t :group 'indent :variable indent-tabs-mode)
+
 (defvar widen-automatically t
   "Non-nil means it is ok for commands to call `widen' when they want to.
 Some commands will do this in order to go to positions outside