From: Peter Lee <pete_lee@swbell.net>
Subject: Re: tab / indent / spaces / modes
Date: Tue, 27 Jan 2004 20:31:59 GMT [thread overview]
Message-ID: <u7jzdrv7t.fsf@swbell.net> (raw)
In-Reply-To: bc9f1e6c.0401270354.5215e3f0@posting.google.com
>>>> Richard Chamberlain writes:
Richard> I want to be able to switch off the indentation mode
(setq perl-tab-always-indent nil)
Richard> So I want the tab key to actually insert a tab, a tab to
Richard> cover four spaces but actually be a tab rather than
Richard> spaces.
(setq tab-always-indent nil)
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60))
(setq tab-width 4)
(setq indent-tabs-mode nil)
Richard> Also is it possible to switch off wrapping so that I have
Richard> to scroll right if I want to see the rest of the line?
Richard> Some of the html tends to be in a long single line and I
Richard> find it difficult to read like it is.
(setq truncate-lines t)
I would put cursor over each of those variables I have above and type
'C-h v'. Read the docs on that var and set it how you like.
Once you have them to your liking install a hook in your init file to
set all those whenever perl mode is loaded. Mine looks like this:
(defun my-perl-mode-hook ()
(setq perl-indent-level 0)
(setq perl-brace-offset 4)
(setq perl-tab-always-indent nil))
(add-hook 'perl-mode-hook 'my-perl-mode-hook)
next prev parent reply other threads:[~2004-01-27 20:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-27 11:54 tab / indent / spaces / modes Richard Chamberlain
2004-01-27 14:07 ` kgold
2004-01-31 0:51 ` Emory Smith
[not found] ` <mailman.1647.1075510308.928.help-gnu-emacs@gnu.org>
2004-02-08 10:27 ` tab / indent / spaces / modes [PHP coding] Jari Aalto+mail.tpu
2004-01-27 20:31 ` Peter Lee [this message]
2004-01-28 11:24 ` tab / indent / spaces / modes Richard Chamberlain
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=u7jzdrv7t.fsf@swbell.net \
--to=pete_lee@swbell.net \
/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).