[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6276: Could indent-tabs-mode etc be made minor modes?
From: |
Stefan Monnier |
Subject: |
bug#6276: Could indent-tabs-mode etc be made minor modes? |
Date: |
Mon, 31 May 2010 16:32:55 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> I just saw on EmacsWiki a list of minor modes that do not have a
> command for turning them on, for example indent-tabs-mode. This is
> instead a defcustom.
> Could this be turned into a global minor mode, for example with
> something like
Sounds OK to me.
> (define-minor-mode indent-tabs-mode
> "test"
> :global t
> :variable indent-tabs-mode)
I'd rather keep the :variable uses to a minimum.
In the case of indent-tabs-mode, maybe the better course of action is to
move `indent-to' and `indent-tabs-mode' from C to Lisp.
Stefan