Add Java config

This commit is contained in:
Tom Willemse 2017-11-13 13:37:05 -08:00
parent bfa67ac2c7
commit 3f54ab2ddd
2 changed files with 35 additions and 4 deletions

View file

@ -881,12 +881,19 @@ Computing Environment".
(with-eval-after-load 'scheme (load "oni-scheme-init"))
#+END_SRC
- [[file:init/oni-compilation-init.org][compilation-mode]]
- [[file:init/oni-compilation-init.org][compilation-mode]] :: Major mode for various compilation processes.
#+BEGIN_SRC emacs-lisp
(with-eval-after-load 'compile (load "oni-compilation-init"))
#+END_SRC
- [[file:init/oni-java-init.org][java-mode]] :: Major mode for the Java programming language.
#+BEGIN_SRC emacs-lisp
(with-eval-after-load 'cc-mode (load "oni-java-init"))
#+END_SRC
** Inferior Emacs lisp mode (ielm)
Enable paredit mode.

View file

@ -0,0 +1,24 @@
Enable electric pair mode
#+BEGIN_SRC emacs-lisp
(add-hook 'java-mode-hook 'electric-pair-local-mode)
#+END_SRC
Enable electric indent mode
#+BEGIN_SRC emacs-lisp
(add-hook 'java-mode-hook 'electric-indent-local-mode)
#+END_SRC
Configure the JDEE server
#+BEGIN_SRC emacs-lisp
(with-eval-after-load 'jdee-bsh
(setq jdee-server-dir "~/usr/share/java/jdee/"))
#+END_SRC
Enable fill column indicator
#+BEGIN_SRC emacs-lisp
(add-hook 'java-mode-hook 'fci-mode)
#+END_SRC