Add Java config
This commit is contained in:
parent
bfa67ac2c7
commit
3f54ab2ddd
2 changed files with 35 additions and 4 deletions
|
@ -881,11 +881,18 @@ 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
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(with-eval-after-load 'compile (load "oni-compilation-init"))
|
||||
#+END_SRC
|
||||
|
||||
** Inferior Emacs lisp mode (ielm)
|
||||
|
||||
|
|
24
emacs/.emacs.d/init/oni-java-init.org
Normal file
24
emacs/.emacs.d/init/oni-java-init.org
Normal 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
|
Loading…
Reference in a new issue