From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Sumsky Newsgroups: gmane.emacs.help Subject: Re: C++-Mode Date: Wed, 8 Jan 2003 15:17:40 GMT Organization: unknown Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3e1af127@news.uni-ulm.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042039588 23573 80.91.224.249 (8 Jan 2003 15:26:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 15:26:28 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18WI66-000684-00 for ; Wed, 08 Jan 2003 16:26:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18WI5I-0006o3-02 for gnu-help-gnu-emacs@m.gmane.org; Wed, 08 Jan 2003 10:25:36 -0500 Original-Newsgroups: gnu.emacs.help Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!news.cesnet.cz!crax.cesnet.cz!news.vutbr.cz!news.muni.cz!news User-Agent: Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.2) Gecko/20021203 In-Reply-To: <3e1af127@news.uni-ulm.de> X-Nntp-Posting-Host: wireless-209.fi.muni.cz X-Accept-Language: cs, en-us, en Original-Lines: 30 Original-Xref: shelby.stanford.edu gnu.emacs.help:108735 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5264 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5264 Boris H. wrote: > Hi all! > > How can I make Emacs separately > 1. compile the current buffer with g++ > 2. run the generated file? > in C++-mode? > > Boris > > And how about eshell - shell for EMACS? I use it for these simple situations ... :-) And for easy of use, I have this shortcut defined in my .emacs: (global-uset-key [f7]) (global-set-key [f7] 'my-eshell) (defun my-eshell() (interactive) (if (string-match "eshell" (buffer-name)) (switch-to-buffer w) (progn (setq w (buffer-name)) (eshell)))) (global-set-key [S-f7] 'eshell-command) HTH, Dave