all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jmg3000@gmail.com
Subject: Re: Indentation.
Date: 28 Oct 2006 09:25:30 -0700	[thread overview]
Message-ID: <1162052730.412600.256330@h48g2000cwc.googlegroups.com> (raw)
In-Reply-To: <m1u01pio1j.fsf@Sams-Baby.local>


Sam Peterson wrote:
> >>>>> "Sam" == Sam Peterson <skpeterson@nospam.please.ucdavis.edu> writes:
>
>     > (global-set-key "\C-m" 'newline-and-indent)
>     > (global-set-key "\C-m" 'newline)
>
> Woops!  That second line should be:
>
> (global-set-key "\C-j" 'newline)
>
> There.

I've also seen that written

(global-set-key "\r" 'newline-and-indent)

and that seems to work also. So, Sam, that plus

(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)

should be just what you want.

---John

  reply	other threads:[~2006-10-28 16:25 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-27 16:17 Indentation zombek
2006-10-27 16:53 ` Indentation Sam Peterson
2006-10-27 18:58   ` Indentation Sam Peterson
2006-10-28 16:25     ` jmg3000 [this message]
2006-10-28 16:28       ` Indentation jmg3000
2006-10-28 16:54       ` Indentation don provan
2006-10-28 23:29         ` Indentation jmg3000
  -- strict thread matches above, loose matches on Subject: below --
2022-01-26 14:13 Indentation Pierre L. Nageoire
2022-01-26 21:18 ` Indentation Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-27  3:30   ` Indentation Pierre L. Nageoire
2022-01-27 10:15     ` Indentation Robert Pluim
2022-01-28  6:31       ` Indentation Pierre L. Nageoire
2021-04-27  7:03 indentation ptlo
2021-04-27  7:25 ` indentation Philip Kaludercic
2021-04-27 15:45   ` indentation ptlo
2021-04-27 16:06     ` indentation Colin Baxter
2021-04-27 18:43       ` indentation Thibaut Verron
2021-04-27 19:00         ` indentation Colin Baxter
2021-04-27 19:20           ` indentation Thibaut Verron
2021-04-27 20:02             ` indentation Colin Baxter
2021-04-28  8:36               ` indentation Thibaut Verron
2021-04-27  9:30 ` indentation Gregory Heytings
2021-04-27  9:47   ` indentation Joost Kremers
2021-04-27 16:55     ` indentation Stefan Monnier
2021-04-27 22:12       ` indentation Gregory Heytings
2021-04-27 17:07 ` indentation Stefan Monnier
2021-04-27 18:29   ` indentation ptlo
2021-04-27 20:31     ` indentation Stefan Monnier
2021-04-28  6:32       ` indentation ptlo
2021-04-28  6:42         ` indentation Joost Kremers
2021-04-28 14:14         ` indentation Stefan Monnier
2021-04-29  7:14           ` indentation ptlo
2021-04-29 13:43             ` indentation Stefan Monnier
2021-04-29 14:23               ` indentation Emanuel Berg via Users list for the GNU Emacs text editor
2021-04-30  7:05               ` indentation ptlo
2021-04-30  7:58                 ` indentation Philip Kaludercic
2021-04-30  8:54                   ` indentation ptlo
2021-04-30  9:09                     ` indentation Thibaut Verron
2021-04-30  9:18                       ` indentation ptlo
2021-04-30 19:05                 ` indentation Jean Louis
2021-04-30 19:59                   ` indentation Stefan Monnier
2021-04-30 21:58                 ` indentation Emanuel Berg via Users list for the GNU Emacs text editor
2021-04-29 21:14           ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-04-30 20:17             ` indentation Tassilo Horn
2021-05-01 13:43               ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-05-02  7:20                 ` indentation Tassilo Horn
2021-05-04 21:03                   ` indentation Wayne Harris via Users list for the GNU Emacs text editor
2021-05-05  1:46                     ` indentation Stefan Monnier via Users list for the GNU Emacs text editor
2006-10-27 16:17 Indentation zombek
2006-10-27 16:46 ` Indentation Markus Triska
2006-10-27 18:01   ` Indentation Malte Spiess
2006-11-01 20:41     ` Indentation Markus Triska
2006-07-03 22:01 Indentation Ronny Mandal
2006-07-03 23:00 ` Indentation Colin S. Miller
     [not found] <mailman.2266.1066871723.21628.help-gnu-emacs@gnu.org>
2003-10-23 13:19 ` indentation Gareth Rees
2003-10-23  1:14 indentation Yen Tran

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=1162052730.412600.256330@h48g2000cwc.googlegroups.com \
    --to=jmg3000@gmail.com \
    /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.