From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Merciadri Luca Newsgroups: gmane.emacs.help Subject: Re: Using javac with Emacs Date: Fri, 18 Sep 2009 21:10:28 +0200 Organization: ULg Message-ID: <87vdjg5asb.fsf@student.ulg.ac.be> References: <878wgcjyjk.fsf@student.ulg.ac.be> <87ws3w1k3p.fsf@merciadriluca-station.MERCIADRILUCA> <7cljkcfkea.fsf@anevia.com> <87vdjgz25t.fsf@merciadriluca-station.MERCIADRILUCA> <4ab3b6f1$0$280$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253302969 7160 80.91.229.12 (18 Sep 2009 19:42:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 19:42:49 +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 21:42:42 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 1MojLu-0004UZ-7N for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 21:42:42 +0200 Original-Received: from localhost ([127.0.0.1]:55841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MojLt-0001fE-Mk for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 15:42:41 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:Q5rAV2u4oCDEtIOSwE0JlqjKKR4= Original-Lines: 56 Original-NNTP-Posting-Host: 62.197.101.238 Original-X-Trace: news.sunsite.dk DXC=JO>>l]0e6_M8R0D 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:68291 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 "Colin S. Miller" writes: > 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) > ) Thanks for this. I have saved it. - -- Merciadri Luca See http://www.student.montefiore.ulg.ac.be/~merciadri/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 iEYEARECAAYFAkqz2yQACgkQM0LLzLt8Mhx82QCfYs568MZCQLuFau4N5lIzcSM2 TpgAnixz3UGNJBQULw9nfTL49qABnuiD =SLvS -----END PGP SIGNATURE-----