help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using javac with Emacs


From: Colin S. Miller
Subject: Re: Using javac with Emacs
Date: Fri, 18 Sep 2009 17:36:00 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

Merciadri Luca wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Riley <rileyrgdev@gmail.com> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]