unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Slass <miknrene@drizzle.com>
Subject: Re: .emacs configuration question (easy)
Date: Wed, 02 Oct 2002 16:18:13 GMT	[thread overview]
Message-ID: <m38z1g95k6.fsf@localhost.localdomain> (raw)
In-Reply-To: 9hvm9.5741$dp1.28734@rwcrnsc52.ops.asp.att.net

"Ryan Barnard" <barnarr@cc.wwu.edu> writes:

>Hi,
>
>I'm fairly new to using Emacs, but I see great potential for it.  I've got a
>simple question I was hoping somebody could help me with:
>
>I want to set up emacs to be a little IDE for some C++ work I wish to do.
>Here's the keypresses needed to make it look how I want it:

Slightly off topic - but have you tried M-x compile ?
If you're not using a makefile, just replace the default command (when
you're prompted) with your compilation command, and emacs will
remember it the next time you try.

I use these key bindings:

(add-hook 'c-mode-common-hook
  (lambda ()
    (define-key c-mode-base-map (kbd "<f3>") 'compile)
    (define-key c-mode-base-map (kbd "<f2>") 'next-error)
    (define-key c-mode-base-map (kbd "<f4>") 'gdb)))


So F3 starts compilation.  If there are errors, F2 traverses them, and
F4 starts the debugger.



-- 
Mike Slass

      parent reply	other threads:[~2002-10-02 16:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-02  5:14 .emacs configuration question (easy) Ryan Barnard
2002-10-02  7:33 ` Jonas Steverud
2002-10-23 20:30   ` emacs/bib-cite/auctex/flyspell interaction with C-c C-c David Forrest
2002-10-02 10:09 ` .emacs configuration question (easy) Oliver Scholz
2002-10-04  3:27   ` ken
2002-10-04  9:01     ` special windows (was: .emacs configuration question (easy)) Oliver Scholz
2002-10-02 16:18 ` Michael Slass [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m38z1g95k6.fsf@localhost.localdomain \
    --to=miknrene@drizzle.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.
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).