From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: changing default indent for C++
Date: Mon, 10 Feb 2003 07:38:35 +0100 [thread overview]
Message-ID: <84fzqw8wt0.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: mailman.1704.1044835041.21513.help-gnu-emacs@gnu.org
exits funnel <exitsfunnel@yahoo.com> writes:
> I'm a new Emacs user. I'm using it primarily to write c++/Java on
> RedHat Linux. So far I love it though there is one thing which
> annoys me. The default indentation is four spaces. I'd desparately
> like to change it to two. Learning LIST is on my todo list but in
> the mean time, How can I do this? Thanks in advance.
(defun ef-c-setup ()
(setq c-basic-offset 2))
(add-hook 'c-mode-hook 'ef-c-setup)
(add-hook 'c++-mode-hook 'ef-c-setup)
The above does it for C and C++ -- I'm sure you can do Java yourself.
--
A turnip curses Elvis
next prev parent reply other threads:[~2003-02-10 6:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1704.1044835041.21513.help-gnu-emacs@gnu.org>
2003-02-10 4:42 ` changing default indent for C++ Jonathon Isaac Swiderski
2003-02-10 6:41 ` Kai Großjohann
2003-02-10 6:38 ` Kai Großjohann [this message]
2003-02-09 23:57 exits funnel
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=84fzqw8wt0.fsf@lucy.is.informatik.uni-duisburg.de \
--to=kai.grossjohann@uni-duisburg.de \
/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.