From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Using javac with Emacs Date: Fri, 18 Sep 2009 17:36:00 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <4ab3b6f1$0$280$14726298@news.sunsite.dk> References: <878wgcjyjk.fsf@student.ulg.ac.be> <87ws3w1k3p.fsf@merciadriluca-station.MERCIADRILUCA> <7cljkcfkea.fsf@anevia.com> <87vdjgz25t.fsf@merciadriluca-station.MERCIADRILUCA> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253292299 4366 80.91.229.12 (18 Sep 2009 16:44:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 16:44:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 18:44:53 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MogZc-0008WG-7N for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 18:44:40 +0200 Original-Received: from localhost ([127.0.0.1]:34109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MogZb-00065m-OT for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 12:44:39 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) Original-Newsgroups: gnu.emacs.help In-Reply-To: <87vdjgz25t.fsf@merciadriluca-station.MERCIADRILUCA> Original-Lines: 42 Original-NNTP-Posting-Host: 62.56.58.189 Original-X-Trace: news.sunsite.dk DXC=i5om2oI77PO3j@n`X75YjCYSB=nbEKnkKVQfQk22Xdg@5fdD?L8VmBHOOn[7LY1L_EQScK68eBi5G; QNS\SSPXnG=`B>8HMEIDHP; BoZQhlG:@ejWXeE5k[[C Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:173165 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68286 Archived-At: Merciadri Luca wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Richard Riley writes: > >>> Perhaps you wanted to type: >>> >>> M-x compile RET C-a C-k javac nameofmyfile RET >>> > needed, okay. > Merciadri, I have this in my .xemacs/init.el (The Xemacs equivalent of .emacs). I'm not sure if the key-definition syntax is correct for FSF Emacs. It defines M-! c to run (compile), as I use compile frequently. HTH, Colin S. Miller (global-unset-key '[(meta !)]) (global-set-key '[(meta !) (meta !)] 'shell-command) (global-set-key '[(meta !) c] 'compile) (global-set-key '[(meta !) g] 'grep) (global-set-key '[(meta !) s] 'shell) (when (eq system-type 'windows-nt) (defun csm-handle-start-dot () (interactive) (shell-command "start .") ) (global-set-key '[(meta !) \.] 'csm-handle-start-dot) ) -- Replace the obvious in my email address with the first three letters of the hostname to reply.