From: kgold@watson.ibm.com (kgold)
Subject: Re: C++/Java/C modes
Date: 20 Nov 2003 16:55:46 GMT [thread overview]
Message-ID: <bpirmi$alq$2@news.btv.ibm.com> (raw)
In-Reply-To: bpfh0o$tk2$1@news.net.uni-c.dk
David Rasmussen <david.rasmussen@gmx.net> writes:
> Two questions:
>
> 1) How do change it so that when I press enter on a line, the cursor is
> already at the natural indentation point with spaces inserted before.
> Example:
(add-hook 'c-mode-common-hook
(function (lambda ()
(define-key c-mode-base-map [RET] 'newline-and-indent)
)))
> 2) How can I change the auto indentation style so that instead of
> [snip]
>
> Help? Maybe I should just give in and go with the flow and use the short
> style.
Don't give in! The whole point of emacs is that it does what you
want.
For indentation, see the manual under "cc-mode" "built-in styles".
Start with one of the built in styles. Then, if it's not exactly
right, the manual tells you how to tweak it.
--
next prev parent reply other threads:[~2003-11-20 16:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-19 10:38 C++/Java/C modes David Rasmussen
2003-11-19 14:09 ` Eli Zaretskii
2003-11-20 16:55 ` kgold [this message]
2003-12-16 21:06 ` Kai Grossjohann
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='bpirmi$alq$2@news.btv.ibm.com' \
--to=kgold@watson.ibm.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.