unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* indentation, setting variables, commands, and M-x
@ 2006-02-03  5:18 John M. Gabriele
  2006-02-03  7:48 ` Eli Zaretskii
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: John M. Gabriele @ 2006-02-03  5:18 UTC (permalink / raw)


Hi, I've just started to learn emacs, and would like to try
using it as my primary editor/IDE, but first need to get a few
things set up. For one thing, the indentation issue.

I'd like to only get spaces in my files, 4 for each level of
indentation, and also have the autoindent work (filling in
spaces as necessary). That is, when I hit the TAB key, I want
to get enough spaces to the next indent-level, filling in
spaces along the way.

I just read here: http://www.emacswiki.org/cgi-bin/wiki/NoTabs
that I can add this

     (setq-default indent-tabs-mode nil)

to my .emacs file (which I haven't yet created). That page says
I can "customize the indent-tabs-mode variable". What does that
mean exactly? How do I go about "customizing" it?

I'm also curious: what's the translation between adding the
above line to my .emacs, and typing something in while editing
(presumably "M-x something")? That is, if someone tells me a
line to add to my .emacs file, how can I figure out how to do
the same thing from within the editor while editing?

Continuing with the indentation issue, I read here:
http://www.emacswiki.org/cgi-bin/wiki/IndentationBasics that
there's a number of "variables" I can set. I see "tab-width"
there. Yay! That looks like what I want. :) But, again, how
do I "set a variable" for emacs (both in my .emacs file,
and live, while editing)?

Regarding the autoindent, Reading here:
http://www.emacswiki.org/cgi-bin/wiki/AutoIndentation it
sounds like autoindent isn't something that comes free, but
instead, to get it, you have to put a one-liner into your
.emacs file. Seems like maybe something that should be
default behaviour, no?

Thanks!
---J

-- 
(remove zeez if demunging email address)

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2006-02-06 21:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.31.1139095080.2870.help-gnu-emacs@gnu.org>
2006-02-05  3:46 ` indentation, setting variables, commands, and M-x John M. Gabriele
2006-02-05 19:52   ` Eli Zaretskii
2006-02-03  5:18 John M. Gabriele
2006-02-03  7:48 ` Eli Zaretskii
2006-02-03  8:54 ` Alan Mackenzie
2006-02-03 16:49   ` Cameron Desautels
2006-02-03  9:53 ` Peter Dyballa
2006-02-03 15:52 ` Drew Adams
2006-02-03 19:21 ` john_sips_tea
2006-02-03 19:27   ` john_sips_tea
2006-02-03 23:12   ` Peter Dyballa
2006-02-06 18:36     ` Kevin Rodgers
2006-02-06 21:11       ` Peter Dyballa
     [not found] ` <mailman.38.1138993306.2860.help-gnu-emacs@gnu.org>
2006-02-03 20:05   ` Neil Cerutti
2006-02-04 11:13     ` Eli Zaretskii
2006-02-03 20:55   ` john_sips_tea
2006-02-04 17:27     ` Drew Adams

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).