This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/!lang/java/funcs.el

30 lines
787 B
EmacsLisp

;;; packages.el --- Java functions File for Spacemacs
;;
;; Copyright (c) 2015 Lukasz Klich
;;
;; Author: Lukasz Klich <klich.lukasz@gmail.com>
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defun spacemacs/java-completing-dot ()
"Insert a period and show company completions."
(interactive "*")
(when (s-matches? (rx (+ (not space)))
(buffer-substring (line-beginning-position) (point)))
(delete-horizontal-space t))
(insert ".")
(company-emacs-eclim 'interactive))
(defun spacemacs/java-maven-test ()
(interactive)
(eclim-maven-run "test"))
(defun spacemacs/java-maven-clean-install ()
(interactive)
(eclim-maven-run "clean install"))
(defun spacemacs/java-maven-install ()
(interactive)
(eclim-maven-run "install"))