help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change Perl mode indentation to two spaces and no tabs?


From: Kenneth Wolcott
Subject: Re: How to change Perl mode indentation to two spaces and no tabs?
Date: Tue, 16 Jun 2015 06:31:41 -0700

On Tue, Jun 16, 2015 at 12:28 AM,  <tomas@tuxteam.de> 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 <ENTER>
>
> then follow the links "Programming" (you can click on the link or move
> point (aka "the cursor") and press <ENTER>), 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-----

Thank you Tomas!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]