https://github.com/matthewzmd/java-one-click-run
Compile and run Java programs easily within Emacs
https://github.com/matthewzmd/java-one-click-run
emacs library package
Last synced: 8 months ago
JSON representation
Compile and run Java programs easily within Emacs
- Host: GitHub
- URL: https://github.com/matthewzmd/java-one-click-run
- Owner: MatthewZMD
- License: other
- Created: 2019-07-05T02:01:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-05T14:56:30.000Z (over 6 years ago)
- Last Synced: 2025-03-28T02:12:34.189Z (8 months ago)
- Topics: emacs, library, package
- Language: Emacs Lisp
- Homepage:
- Size: 25.4 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+TITLE: Java One Click Run
Compile and run Java programs easily within Emacs.
* Introduction
This is the first Emacs package I've (partialy) written. It is a simple package originated from James Borden's [[https://github.com/jborden/emacs/blob/master/java/javac.el][javac-mode]] back in 2012. There are lots of simplifications and modifications that aims to enhance the original functionality.
It is now capable of compiling and running Java programs using one single command =java-one-click-run=. The behavior is similar to Eclipse and Intellij, which opens a shell buffer utilizing the package [[https://github.com/ieure/shell-here][shell-here]].
* Installation
1. Clone or download this repository.
2. Install [[https://github.com/ieure/shell-here][shell-here]].
3. In your =~/.emacs= configuration file, add the following lines:
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "") ; add java-one-click-run to your load-path
(require 'java-one-click-run)
#+END_SRC
4. Bind =java-one-click-run= to your favourite key.
If you prefer =use-package=, a sample is provided:
#+BEGIN_SRC emacs-lisp
(use-package java-one-click-run
:load-path "~/.emacs.d/site-elisp/java-one-click-run/"
:init (use-package shell-here)
:bind ("" . java-one-click-run))
#+END_SRC
* Contribution
I have never written an emacs package before, any suggestions for improvement are *very* welcomed! :)
* License
The original package was licensed under [[https://github.com/jborden/emacs/blob/master/LICENSE][MIT]]. Now that I made this package, I decided to relicense it under [[file:LICENSE][GPLv3]] (MIT is [[https://www.gnu.org/licenses/license-list.en.html#Expat][GPL-compatible]]). Mainly to keep consistency with other emacs packages, and I like /free/ software.