From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: How to change Perl mode indentation to two spaces and no tabs? Date: Tue, 16 Jun 2015 09:28:48 +0200 Message-ID: <20150616072848.GA10736@tuxteam.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1434439757 28975 80.91.229.3 (16 Jun 2015 07:29:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2015 07:29:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Kenneth Wolcott Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 16 09:29:12 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 1Z4lJ1-0000GX-FX for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 09:29:11 +0200 Original-Received: from localhost ([::1]:38312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4lJ0-0008O2-Cq for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 03:29:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4lIp-0008Nu-Ug for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 03:29:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4lIm-0001R5-BO for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 03:28:59 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:40878 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4lIm-0001OX-4c for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 03:28:56 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1Z4lIe-0002yh-Mg; Tue, 16 Jun 2015 09:28:48 +0200 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 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:104970 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Jun 15, 2015 at 09:38:06AM -0700, Kenneth Wolcott wrote: > HI; > > I'd like to change the default indentation of the Emacs Perl mode > from four spaces (and tabs?) to be two spaces and no tabs. How do I > do this? As an alternative way which might be more amenable to exploration, you might want to try Emacs' "customize" interface. Just type M-x customize then follow the links "Programming" (you can click on the link or move point (aka "the cursor") and press ), then "Languages", then "Perl". There you can set the values for all the settings Perl-Mode has. You can set those values just for the current session or set them permanently (in the last case Emacs writes those settings to your .emacs, so this method is compatible to what the other posters have recommended you. If you have set things "by hand" and via customize, you might want to have a look at your .emacs to consolidate things (no use in setting some variable twice, and in the long run it makes things unreadable). Customize: warmly recommended. And it's included! regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlV/0DAACgkQBcgs9XrR2kZM6gCfVWg61GndJZe6w5fuCmvQc5It c+sAn2vT7GonDw9bQdSOG1H2BoAvfnAt =iw2g -----END PGP SIGNATURE-----