From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenneth Wolcott Newsgroups: gmane.emacs.help Subject: Re: How to change Perl mode indentation to two spaces and no tabs? Date: Tue, 16 Jun 2015 06:31:41 -0700 Message-ID: References: <20150616072848.GA10736@tuxteam.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1434461527 30868 80.91.229.3 (16 Jun 2015 13:32:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2015 13:32:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 16 15:32:06 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 1Z4qyD-0000DU-Lm for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 15:32:05 +0200 Original-Received: from localhost ([::1]:40269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4qyD-0005ai-10 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 09:32:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4qxs-0005QF-0Q for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 09:31:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4qxq-0002uZ-QW for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 09:31:43 -0400 Original-Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:36157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4qxq-0002uF-L3 for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 09:31:42 -0400 Original-Received: by wgzl5 with SMTP id l5so12355338wgz.3 for ; Tue, 16 Jun 2015 06:31:42 -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:content-transfer-encoding; bh=DfIICFf6n0VTimUhi+Ea2o0jTI3diXbfVDPqBmvsKo8=; b=l8IaMY1Kuf4PGlwrpxC2xKYj+oIPjZmv635MO1t6GQ/+N1N8REqMH7FISzAfk8utCh I1r7CI2lvjNfvW18gjeoRo8cnC9R80pBXPe7oCDgMuiE7j9EUNpKYO+sSi+BGDAdPw1b nyHhkqDAOA1Z+VZ1Ud4QOTRwZwEbtncpxppTdczgTH1mVUeXC8YKIx0+Vulyx5jaQzAH QIrXi1lSwoF4HOIx+pVNyhpn/tIxtMccs6Xs8AP4c6wdM9+dpwxuYnRyxzAy2exnXYJM smtd1W1+nQyln9Bzz8c0i3wLn5vzsO3oVcFrhuOyfsOwlXo1KH3MfybYwxRJe63q3gmo nkLA== X-Received: by 10.180.106.137 with SMTP id gu9mr44430856wib.54.1434461502031; Tue, 16 Jun 2015 06:31:42 -0700 (PDT) Original-Received: by 10.28.135.20 with HTTP; Tue, 16 Jun 2015 06:31:41 -0700 (PDT) In-Reply-To: <20150616072848.GA10736@tuxteam.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::233 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:104979 Archived-At: On Tue, Jun 16, 2015 at 12:28 AM, wrote: > -----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=C3=A1s > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > > iEYEARECAAYFAlV/0DAACgkQBcgs9XrR2kZM6gCfVWg61GndJZe6w5fuCmvQc5It > c+sAn2vT7GonDw9bQdSOG1H2BoAvfnAt > =3Diw2g > -----END PGP SIGNATURE----- Thank you Tomas!