java layer: rename functions with spacemacs prefix
This commit is contained in:
parent
8beeaba6db
commit
b5e2e3773d
|
@ -1,2 +1,12 @@
|
|||
;;; packages.el --- Java configuration 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
|
||||
|
||||
;; Define the buffer local company backend variable
|
||||
(spacemacs|defvar-company-backends java-mode)
|
||||
|
|
|
@ -1,22 +1,30 @@
|
|||
(defun java/completing-dot ()
|
||||
;;; 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 java/maven-test ()
|
||||
(defun spacemacs/java-maven-test ()
|
||||
(interactive)
|
||||
(eclim-maven-run "test"))
|
||||
|
||||
(defun java/maven-clean-install ()
|
||||
(defun spacemacs/java-maven-clean-install ()
|
||||
(interactive)
|
||||
(eclim-maven-run "clean install"))
|
||||
|
||||
(defun java/maven-install ()
|
||||
(defun spacemacs/java-maven-install ()
|
||||
(interactive)
|
||||
(eclim-maven-run "install"))
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
'(eclim-mode (:eval (eclim-modeline-string))))
|
||||
|
||||
(evil-define-key 'insert java-mode-map
|
||||
(kbd ".") 'java/completing-dot
|
||||
(kbd ".") 'spacemacs/java-completing-dot
|
||||
(kbd "M-.") 'eclim-java-find-declaration
|
||||
(kbd "M-,") 'pop-tag-mark
|
||||
(kbd "M-<mouse-3>") 'eclim-java-find-declaration
|
||||
|
@ -94,13 +94,12 @@
|
|||
"mhi" 'eclim-java-hierarchy
|
||||
"mhu" 'eclim-java-find-references
|
||||
|
||||
"mmi" 'java/maven-clean-install
|
||||
"mmI" 'java/maven-install
|
||||
"mmm" 'java/maven-clean-install
|
||||
"mmi" 'spacemacs/java-maven-clean-install
|
||||
"mmI" 'spacemacs/java-maven-install
|
||||
"mmp" 'eclim-maven-lifecycle-phases
|
||||
"mmr" 'eclim-maven-run
|
||||
"mmR" 'eclim-maven-lifecycle-phase-run
|
||||
"mmt" 'java/maven-test
|
||||
"mmt" 'spacemacs/java-maven-test
|
||||
|
||||
"maa" 'eclim-ant-run
|
||||
"mac" 'eclim-ant-clear-cache
|
||||
|
@ -118,8 +117,7 @@
|
|||
"mpp" 'eclim-project-mode
|
||||
"mpu" 'eclim-project-update
|
||||
|
||||
"mtt" 'eclim-run-junit
|
||||
"mtT" 'java/maven-test)))
|
||||
"mtt" 'eclim-run-junit)))
|
||||
|
||||
(use-package company-emacs-eclim
|
||||
:if (configuration-layer/package-usedp 'company)
|
||||
|
|
Loading…
Reference in New Issue