6eab954afe
Helm seems to treat "!" specially in pattern matching, so having a ! in the pattern string when traversing directories is problematic. This change fixes #2737, because as far as I can tell "+" has no special meaning in a helm pattern. Of course, we can choose a different character, but I'm fond of "+" as representing "more layers here".
42 lines
1.2 KiB
EmacsLisp
42 lines
1.2 KiB
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 "*")
|
|
(spacemacs//java-delete-horizontal-space)
|
|
(insert ".")
|
|
(company-emacs-eclim 'interactive))
|
|
|
|
(defun spacemacs/java-completing-double-colon ()
|
|
"Insert double colon and show company completions."
|
|
(interactive "*")
|
|
(spacemacs//java-delete-horizontal-space)
|
|
(insert ":")
|
|
(let ((curr (point)))
|
|
(when (s-matches? (buffer-substring (- curr 2) (- curr 1)) ":")
|
|
(company-emacs-eclim 'interactive))))
|
|
|
|
(defun spacemacs//java-delete-horizontal-space ()
|
|
(when (s-matches? (rx (+ (not space)))
|
|
(buffer-substring (line-beginning-position) (point)))
|
|
(delete-horizontal-space t)))
|
|
|
|
(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"))
|