From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bobby Casey Newsgroups: gmane.emacs.help Subject: Re: indentation (Indent More) Date: Wed, 15 Jul 2015 16:34:26 -0400 Message-ID: References: <7f965313-0b25-4f31-afc5-caaa36f2486c@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1436992500 21940 80.91.229.3 (15 Jul 2015 20:35:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jul 2015 20:35:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Russ P." Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 15 22:34:56 2015 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 1ZFTOK-0001T8-28 for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Jul 2015 22:34:56 +0200 Original-Received: from localhost ([::1]:37412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFTOJ-000495-6G for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Jul 2015 16:34:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFTNy-0003vT-JN for help-gnu-emacs@gnu.org; Wed, 15 Jul 2015 16:34:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFTNt-0000WK-04 for help-gnu-emacs@gnu.org; Wed, 15 Jul 2015 16:34:34 -0400 Original-Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:36546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFTNs-0000UX-Pv for help-gnu-emacs@gnu.org; Wed, 15 Jul 2015 16:34:28 -0400 Original-Received: by pachj5 with SMTP id hj5so29820141pac.3 for ; Wed, 15 Jul 2015 13:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DVZ//vzeRjx3YXolEV7pdwuTdUR6U6QIWw9znM7luD4=; b=VhF98ZZx9PsOeTtRLsbzIC1a1YAumpGQypRMtJc0aPNPruXGSJHo2kkuq1of5pdBOj TwN5HLhiHqk357AEGMzqOp2tr4o/8PVDvRTrbAey7Ue6ygqyeTUuOUCyl8wEOj3lXalz IIPpzZU0iNDA00a97tFV89gJaZzvol+wP/pnHSqRB16xTkOghpZdy7gsWMkfl1nWAkzp Id4gECw4b+kWh5YLMdZkm8YMzdHFhoILGQmPWAYYgh2wefhh3YlG8B/Toh/a4MclIagy ovQRBK/vkYMywwn5PHmP8arBQoF05rUBGanSZj4wZ0g0GYgRQST3sMLB5MEdqNO29nnL Ckkg== X-Received: by 10.66.157.167 with SMTP id wn7mr11537247pab.119.1436992466837; Wed, 15 Jul 2015 13:34:26 -0700 (PDT) Original-Received: by 10.66.74.41 with HTTP; Wed, 15 Jul 2015 13:34:26 -0700 (PDT) In-Reply-To: <7f965313-0b25-4f31-afc5-caaa36f2486c@googlegroups.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::234 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:105735 Archived-At: On Sun, Jul 12, 2015 at 2:03 AM, Russ P. wrote: > I recently decided to decrease my indentation from 4 spaces to 2 spaces (as recommended for Scala). I have the following in my .emacs file: > > (global-set-key "\t" 'tab-to-tab-stop) ; "normal" tab key > (setq tab-stop-list '(2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36)) > (setq-default indent-tabs-mode nil) > (setq-default tab-width 2) > > It works fine, but when I try to use > > Edit/Text Properties/Indentation/Indent More > > it still adds 4 spaces. How can I change that to 2 spaces? Thanks > According to the help for `increase-left-margin' the variable `standard-indent' is used to specify spacing. Setting that to 2 should fix the issue. As an aside, are you sure you want two spaces for everything rather than just in scala-mode?