Home > Archive > Java Help > October 2005 > getting help with emacs--newbie
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
getting help with emacs--newbie
|
|
| thickface 2005-10-17, 7:00 pm |
| Hello all, I am using emacs on Windoows platform. All in all, I would
like to make a folder for Java source codes, and edit and compile with
emacs. Can emacs compile java source codes only when they are in bin
folder?
Thanks
| |
| blmblm@myrealbox.com 2005-10-18, 7:57 am |
| In article <1129563916.884873.232220@g44g2000cwa.googlegroups.com>,
thickface <kimfinale@gmail.com> wrote:
>Hello all, I am using emacs on Windoows platform. All in all, I would
>like to make a folder for Java source codes, and edit and compile with
>emacs. Can emacs compile java source codes only when they are in bin
>folder?
I have gotten the impression from emacs fanatics that it can do
anything and everything. Sort of a :-).
There seems to be a fairly active group comp.emacs. Perhaps that
would be a good place to ask, if you don't get an answer here. There
is also comp.editors, but it's fairly vi-and-clones-centric.
--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.
| |
| Ross Bamford 2005-10-18, 7:57 am |
| On Mon, 17 Oct 2005 16:45:16 +0100, thickface <kimfinale@gmail.com> wrote:
> Hello all, I am using emacs on Windoows platform. All in all, I would
> like to make a folder for Java source codes, and edit and compile with
> emacs. Can emacs compile java source codes only when they are in bin
> folder?
> Thanks
>
It's been a while since I used emacs - I long ago switched to Vi, then
jEdit, and now Eclipse - so I'm afraid I can't remember exactly how it's
done, but IIRC on Unix it had to do with changing the value of
'compile-command' in your .emacs file, or alternatively implement a set of
makefiles for Java code. If Windows has the info or man for Emacs on
windows, check out the variables reference in there.
One option that springs to mind is to use Ant for your build, and assign
'ant' to 'compile-command' (instead of e.g. 'javac'), keeping the
current-directory setup. That way, Ant will find the build.xml, and from
there your source can be where you like. I've not tried this, though, and
I'm not sure how you'd integrate it with the '*compile*' output. Has
anyone else used Ant with Emacs?
While I admire your resolve, I worry slightly about that 'newbie' - to
emacs, Java, or both? If the latter I heartily recommend an upgrade, since
you're likely to trip all over the stuff you'll never use, and Emacs
doesn't exactly encourage best-practices in Java development these days :).
--
Ross Bamford - rosco@roscopeco.remove.co.uk
| |
| Patrick May 2005-10-18, 7:57 am |
| "thickface" <kimfinale@gmail.com> writes:
> Hello all, I am using emacs on Windoows platform. All in all, I
> would like to make a folder for Java source codes, and edit and
> compile with emacs. Can emacs compile java source codes only when
> they are in bin folder?
I recommend that you install the Java Development Environment for
Emacs (JDEE), available at http://jdee.sunsite.dk. It provides all of
the features you'll need.
Regards,
Patrick
------------------------------------------------------------------------
S P Engineering, Inc. | The experts in large scale distributed OO
| systems design and implementation.
pjm@spe.com | (C++, Java, Common Lisp, Jini, CORBA, UML)
| |
| Roedy Green 2005-10-18, 7:03 pm |
| On 17 Oct 2005 08:45:16 -0700, "thickface" <kimfinale@gmail.com> wrote
or quoted :
>Hello all, I am using emacs on Windoows platform. All in all, I would
>like to make a folder for Java source codes, and edit and compile with
>emacs. Can emacs compile java source codes only when they are in bin
>folder?
Do you have a coat with pockets on the inside for rabid bats? EMACS
is about the most unfriendly IDE to Windows types I could imagine. It
works so totally differently. You might like to look at something
more familiar and CUA. See http://mindprod.com/jgloss/ide.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
| |
| Gordon Beaton 2005-10-19, 3:57 am |
| On Tue, 18 Oct 2005 23:12:04 GMT, Roedy Green wrote:
> EMACS is about the most unfriendly IDE to Windows types I could
> imagine. It works so totally differently. You might like to look at
> something more familiar and CUA. See
> http://mindprod.com/jgloss/ide.html
In emacs, do:
C-h f cua-mode
or:
M-x cua-mode
/gordon
--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
| |
| Michael Powe 2005-10-27, 3:57 am |
| >>>>> "thickface" == thickface <kimfinale@gmail.com> writes:
thickface> Hello all, I am using emacs on Windoows platform. All
thickface> in all, I would like to make a folder for Java source
thickface> codes, and edit and compile with emacs. Can emacs
thickface> compile java source codes only when they are in bin
thickface> folder? Thanks
Several good answers already made:
* gnu.emacs.help or comp.emacs for help
* jdee (java development environment for emacs) http://jdee.sunsite.dk/
* may not be the best option unless you are already an experienced java
programmer. that is just because setting up the jdee requires good
knowledge of configuring emacs itself and of some of the peculiarities
of java compilation.
i'm a longtime emacs user and i'm using gnus, the emacs newsreader,
right now. but, i would not recommend it for novice java programmers
and if you're a novice emacs user, i would not recommend that you
start using emacs by trying jdee. first walk, then run.
thanks.
mp
--
'cat' is not recognized as an internal or external command,
operable program or batch file.
|
|
|
|
|