diff options
Diffstat (limited to 'emacs/.emacs.d/init')
-rw-r--r-- | emacs/.emacs.d/init/oni-java-init.org | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/oni-java-init.org b/emacs/.emacs.d/init/oni-java-init.org new file mode 100644 index 0000000..c18a1a4 --- /dev/null +++ b/emacs/.emacs.d/init/oni-java-init.org @@ -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 |