[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: In defense of Customize [was: Trying to right-align my window on sta
From: |
Rusi |
Subject: |
Re: In defense of Customize [was: Trying to right-align my window on startup] |
Date: |
Thu, 30 Jan 2014 22:54:45 -0800 (PST) |
User-agent: |
G2/1.0 |
On Thursday, January 30, 2014 9:36:20 PM UTC+5:30, Drew Adams wrote:
> > >> (cus-set 'indent-tabs-mode t)
> > >> (cus-set 'indent-tabs-mode nil :mode prog-mode)
> > show me the easy code for setting indent-tabs-mode to t in
> > general and to nil in all programming modes.
> I'm probably missing your point, but doesn't something like
> this do that?
> (setq-default indent-tabs-mode t)
> (add-hook 'prog-mode-hook
> (lambda () (setq indent-tabs-mode nil)))
This is what I meant by "elisp is too imperative"
Note that there is a smidgen of declarativeness in autoload and
eval-after-load.
So we do need the like of:
(cus-set 'indent-tabs-mode t)
(cus-set 'indent-tabs-mode nil :mode prog-mode)
Only I wish it were part of a more general/generic declarative infrastructure
and not an optional bolt-on like customize
- RE: In defense of Customize [was: Trying to right-align my window on startup], (continued)
- RE: In defense of Customize [was: Trying to right-align my window on startup], Drew Adams, 2014/01/28
- Message not available
- Re: In defense of Customize [was: Trying to right-align my window on startup], Christoph Wedler, 2014/01/30
- Re: In defense of Customize [was: Trying to right-align my window on startup], Stefan Monnier, 2014/01/30
- RE: In defense of Customize [was: Trying to right-align my window on startup], Drew Adams, 2014/01/30
- Message not available
- Re: In defense of Customize [was: Trying to right-align my window on startup], Rusi, 2014/01/30
- Re: In defense of Customize [was: Trying to right-align my window on startup], Emanuel Berg, 2014/01/30
- Re: In defense of Customize [was: Trying to right-align my window on startup], Phillip Lord, 2014/01/31
- Message not available
- Re: In defense of Customize [was: Trying to right-align my window on startup], Rusi, 2014/01/31
- Re: In defense of Customize [was: Trying to right-align my window on startup], Emanuel Berg, 2014/01/31
- Message not available
- Re: In defense of Customize [was: Trying to right-align my window on startup], Emanuel Berg, 2014/01/31
- Message not available
- Re: In defense of Customize [was: Trying to right-align my window on startup],
Rusi <=
- Message not available
- Re: In defense of Customize [was: Trying to right-align my window on startup], Christoph Wedler, 2014/01/31
- Message not available
- Re: Trying to right-align my window on startup, Sebastien Vauban, 2014/01/09
- RE: Trying to right-align my window on startup, Drew Adams, 2014/01/09
- RE: Trying to right-align my window on startup, Mickey Ferguson, 2014/01/10
- RE: Trying to right-align my window on startup, Drew Adams, 2014/01/10
- RE: Trying to right-align my window on startup, Mickey Ferguson, 2014/01/10
- RE: Trying to right-align my window on startup, Drew Adams, 2014/01/10
- RE: Trying to right-align my window on startup, Mickey Ferguson, 2014/01/13
- Re: Trying to right-align my window on startup, Eli Zaretskii, 2014/01/13