help-gnu-emacs
[Top][All Lists]
Advanced

[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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]