all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Emanuel Berg <embe8573@student.uu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to change Perl mode indentation to two spaces and no tabs?
Date: Wed, 17 Jun 2015 04:55:23 +0100	[thread overview]
Message-ID: <87d20vat04.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <87y4jka37d.fsf@debian.uxu> (message from Emanuel Berg on Tue, 16 Jun 2015 02:48:06 +0200)

Emanuel Berg <embe8573@student.uu.se> writes:
> As a side note, I don't understand why one cannot get
> this by the use of a single variable value. I seems
> like a thing one would just store in a (1) variable
> and then have that configurable by the user, and
> propagated down the pipe. Why should it be there three
> times - out of which, once negated? If there is a good
> answer, this is a serious question, if there isn't,
> consider it rhetorical...

This is tricky.  There are two aspects to tabs:

* How a tab character is displayed.
This is controlled by the variable tab-width.  Usually though, the only
way you can insert a tab character is with C-q TAB or C-q C-i though.
By default Emacs binds TAB to a command.

* What pressing tab inserts.
If a mode doesn't have an indentation convention then this is defined by
tab-stops-list and tab-to-tab-stop.  If the mode does have an
indentation convention then that takes over and it's defined by a mode
specific variable.

BR,
Robert Thorpe



  reply	other threads:[~2015-06-17  3:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5054.1434389545.904.help-gnu-emacs@gnu.org>
2015-06-15 18:27 ` How to change Perl mode indentation to two spaces and no tabs? Emanuel Berg
2015-06-15 19:17   ` Kenneth Wolcott
2015-06-15 19:47     ` John Mastro
2015-06-15 19:58       ` Kenneth Wolcott
     [not found]       ` <mailman.5060.1434398291.904.help-gnu-emacs@gnu.org>
2015-06-15 20:10         ` Dan Espen
2015-06-15 20:53           ` Kenneth Wolcott
     [not found]           ` <mailman.5061.1434401625.904.help-gnu-emacs@gnu.org>
2015-06-15 22:51             ` Emanuel Berg
2015-06-15 23:48               ` Kenneth Wolcott
     [not found]               ` <mailman.5067.1434412130.904.help-gnu-emacs@gnu.org>
2015-06-16  0:48                 ` Emanuel Berg
2015-06-17  3:55                   ` Robert Thorpe [this message]
2015-06-15 16:38 Kenneth Wolcott
2015-06-16  7:28 ` tomas
2015-06-16 13:31   ` Kenneth Wolcott
     [not found] ` <mailman.5082.1434439741.904.help-gnu-emacs@gnu.org>
2015-06-16 21:48   ` Emanuel Berg

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d20vat04.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.