From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Pennebaker Newsgroups: gmane.emacs.devel Subject: Have shell-mode obey standard indentation style variables Date: Mon, 13 Jul 2015 11:25:04 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff1c9ec056909051ac42aeb X-Trace: ger.gmane.org 1436804734 26822 80.91.229.3 (13 Jul 2015 16:25:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2015 16:25:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 13 18:25:22 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZEgXg-0003x6-OP for ged-emacs-devel@m.gmane.org; Mon, 13 Jul 2015 18:25:20 +0200 Original-Received: from localhost ([::1]:55756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEgXf-0004gW-Ee for ged-emacs-devel@m.gmane.org; Mon, 13 Jul 2015 12:25:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEgXT-0004eJ-RA for emacs-devel@gnu.org; Mon, 13 Jul 2015 12:25:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEgXS-0001G3-GA for emacs-devel@gnu.org; Mon, 13 Jul 2015 12:25:07 -0400 Original-Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:33968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEgXS-00018R-BT for emacs-devel@gnu.org; Mon, 13 Jul 2015 12:25:06 -0400 Original-Received: by obre1 with SMTP id e1so3993374obr.1 for ; Mon, 13 Jul 2015 09:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=rKbtnBFrZgVK/Fwu6G9XDrHEEx4wLuKOcpGweHGBprs=; b=Pyje/a3ACSlHb0hoUbCRgsxD94tpIgxCz1wA2XqGYFRs+WgB64TagszQoG5f+h9N6/ i39SEQiBMKvfWoMfvn+ISJEtNiUy232LLNUe7bFMt1QyMaSQmGLR17u7ERNkWfcAdk9X a5r+hTyrJ1jCe4OSBu1Vb32d/ltr6mfgHVShcy4hshmqaTwF5WcDi04aV6RFEz5RT7Ko F4vAjvWBCTFUBcNiQA8T3bz8+6xVaQiarVWoEt7a/pvtuX0v/1XzFKYikDxRl2fuDUcm xnYuXIiYxE3x3gSqYOlgtM23UHnD/93OFEGUU2RHyVJUvR3OBfC1A0rD53utAcVVB47m Ba+Q== X-Received: by 10.182.199.103 with SMTP id jj7mr16036408obc.49.1436804704461; Mon, 13 Jul 2015 09:25:04 -0700 (PDT) Original-Received: by 10.76.125.169 with HTTP; Mon, 13 Jul 2015 09:25:04 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187855 Archived-At: --e89a8ff1c9ec056909051ac42aeb Content-Type: text/plain; charset=UTF-8 Emacs offers convenient variables for customizing indentation styles: indent-tabs-mode and sws-tab-width. For many programming modes, a user can set these variables globally, and they will automatically be applied to different file formats. Of course, these can be customized per-mode with hooks. However, shell-mode does not appear to respect these variables, only responding to its own internal variable names sh-basic-offset and sh-indentation. In the future, could shell-mode please automatically default these to follow sws-tab-width, so that fewer individual modes require specific configuration? Here's my .emacs for reference: https://github.com/mcandre/dotfiles/blob/master/.emacs#L59-L60 -- Cheers, Andrew --e89a8ff1c9ec056909051ac42aeb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Emacs offers convenient variables for customizin= g indentation styles: indent-tabs-mode and sws-tab-width. For many programm= ing modes, a user can set these variables globally, and they will automatic= ally be applied to different file formats. Of course, these can be customiz= ed per-mode with hooks.

However, shell-mode does not appear to= respect these variables, only responding to its own internal variable name= s sh-basic-offset and sh-indentation. In the future, could shell-mode pleas= e automatically default these to follow sws-tab-width, so that fewer indivi= dual modes require specific configuration?

Here's my .emac= s for reference:

https://github.com/mcandre/dotfiles/blob/master/.em= acs#L59-L60

--
Cheers,
Andrew
--e89a8ff1c9ec056909051ac42aeb--