From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help 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) Message-ID: References: <3cec217d-8adb-4e6c-b239-eff0c8b520c9@googlegroups.com> <6hrwqhkjfv6.fsf@sap.com> <6hr38k5rd3n.fsf@sap.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1391151311 29043 80.91.229.3 (31 Jan 2014 06:55:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2014 06:55:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 31 07:55:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W980U-0001X6-Ts for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jan 2014 07:55:19 +0100 Original-Received: from localhost ([::1]:53509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W980U-0007Hu-7Y for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jan 2014 01:55:18 -0500 X-Received: by 10.236.94.202 with SMTP id n50mr6661029yhf.31.1391151285803; Thu, 30 Jan 2014 22:54:45 -0800 (PST) X-Received: by 10.50.66.243 with SMTP id i19mr546787igt.17.1391151285597; Thu, 30 Jan 2014 22:54:45 -0800 (PST) Original-Path: usenet.stanford.edu!f11no10847263qae.1!news-out.google.com!wo6ni3igb.0!nntp.google.com!c10no7376380igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.99.104.241; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.99.104.241 User-Agent: G2/1.0 Injection-Date: Fri, 31 Jan 2014 06:54:45 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:203554 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95823 Archived-At: 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