dotfiles/emacs/.emacs.d/init/oni-java-init.org

25 lines
486 B
Org Mode
Raw Normal View History

2017-11-13 22:37:05 +01:00
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