From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: despen@verizon.net Newsgroups: gmane.emacs.help Subject: Re: Indenting with 2 spaces Date: Thu, 04 Nov 2010 17:05:14 -0400 Organization: A noiseless patient Spider Message-ID: References: <051748c4-3a8c-4bbb-8ab9-75dc082329b7@j25g2000yqa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291886129 9499 80.91.229.12 (9 Dec 2010 09:15:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 09:15:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 10:15:25 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQcaz-0006km-KC for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 10:15:25 +0100 Original-Received: from localhost ([127.0.0.1]:40060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQbW3-0001Af-Dj for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 03:06:15 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Injection-Info: mx03.eternal-september.org; posting-host="m5Xp1AeG0rhUixp3PGRKOA"; logging-data="26264"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0nBoMyNDYa/HO3qTWNjHe4m2ZrQYpomY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:uVuuulI1T8vLgceE+jxRa/XjsJ0= sha1:vp42RHiui/M2lclsCE5rLYd+Zp4= Original-Xref: usenet.stanford.edu gnu.emacs.help:182222 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76909 Archived-At: Stefan Monnier writes: >> Thanks! That seems like a big limitation of Emacs that there is no way >> to specify all modes at once. > > Yes and no: > - it's an inconvenience that many aspects of major modes are not > sufficiently standardized for there to be a central place where the > default can be changed once and for all modes. > - favorite indentation steps tend to depend on the language because > different styles of syntaxes lend themselves more or less well to > shallow/deep indentation steps. Furthermore, most projects impose > a particular indentation style (and indentation's basic step is part > of it), so it's fairly common to have to use different basic steps in > different files, even for the same language, if you work on more than > a single project. > So while I generally agree with you, in the specific case of basic > indentation step, I don't think it's nearly as bad as you say. Other issues: 1. Makefiles have a specific indentation and attempts to mess with it would not work. Whether there are other languages like that, I don't know. I use my own BAL mode for mainframe Assembler that wouldn't tolerate being adjusted. 2. Setting up a wrapper for a couple dozen common modes wouldn't be all that hard as long as all you were worried about is basic indentation but indentation rules are more complex than just width and spaces vs. tabs.