From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Solved: Re: tabs with cperl-mode
Date: Thu, 09 Jun 2005 10:47:06 -0400 [thread overview]
Message-ID: <87aclzd1yt.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.4009.1118301072.25862.help-gnu-emacs@gnu.org
>> align everything on multiples of 8. I.e. start by setting
>> cperl-indent-level to 8.
> I changed that. It works :) And i was confused again, because i had
> (setq tab-width 4)
> in my .emacs . So I googled a bit and I found the solution.
> so this works fine for me:
> (setq cperl-continued-statement-offset 4)
> (setq cperl-indent-level 4)
> (setq cperl-tab-always-indent t)
> (setq default-tab-width 4)
Changing tab-width is asking for trouble. Its normal meaning, agreed upon
by all programs is that the width of a TAB is 8, no more no less. If you
change it, it'll mess something up at some point.
Changing default-tab-width is even worse.
At least do
(add-hook 'cperl-mode-hook (lambda () (setq tab-width 4)))
so it's only fucked up in your cperl mode and not in the rest.
Stefan
prev parent reply other threads:[~2005-06-09 14:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3836.1118229884.25862.help-gnu-emacs@gnu.org>
2005-06-08 20:00 ` tabs with cperl-mode Ilya Zakharevich
2005-06-08 20:23 ` Martin Barth
2005-06-08 21:44 ` Stefan Monnier
2005-06-09 7:06 ` Solved: " Martin Barth
[not found] ` <mailman.4009.1118301072.25862.help-gnu-emacs@gnu.org>
2005-06-09 14:47 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aclzd1yt.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).