# HG changeset patch # User Oleksandr Gavenko # Date 1394141350 -7200 # Node ID b0aec76c3745d8ee28e8e130c9366e28370e0b53 # Parent 6b18658edec86fe8c2c953a77fa74e16a3e5ab7e# Parent 1fc59cf19c28736f3b6cdcbac412cb4df5f28ea9 merged diff -r 1fc59cf19c28 -r b0aec76c3745 .emacs-my --- a/.emacs-my Mon Mar 03 00:56:28 2014 +0200 +++ b/.emacs-my Thu Mar 06 23:29:10 2014 +0200 @@ -2804,6 +2804,10 @@ (setq sql-password "") (add-to-list 'auto-mode-alist '("\\.plsql\\'" . sql-mode)) +;; Disable placeholders substitution in Oracle SQLi by Emacs itself. +;; This enable "define" and "&var" syntax. +(setq sql-oracle-scan-on nil) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (message "backuping") diff -r 1fc59cf19c28 -r b0aec76c3745 maven-central.el --- a/maven-central.el Mon Mar 03 00:56:28 2014 +0200 +++ b/maven-central.el Thu Mar 06 23:29:10 2014 +0200 @@ -130,6 +130,45 @@ (maven-central.versions groupId artifactId)) )) +(defvar maven.command "mvn") + +(defvar maven.help-buffer-name "*Maven Help*") + +(defun maven.help () + "Run help:describe for plugin at point." + (interactive) + (let (dependency groupId artifactId) + (setq dependency (maven-central.parse-pom-dependency)) + (setq groupId (elt dependency 0)) + (setq artifactId (elt dependency 1)) + (if (not (and groupId artifactId)) + (message "Can't find `groupId' or `artifactId'") + (shell-command + (format "%s help:describe -DgroupId=%s -DartifactId=%s" maven.command groupId artifactId) + (switch-to-buffer maven.help-buffer-name)) ) + )) + +(defun maven.effective-pom () + "Run help:effective-pom for plugin at point." + (interactive) + (shell-command + (format "%s help:effective-pom" maven.command) + (switch-to-buffer maven.help-buffer-name)) ) + +(defun maven.effective-pom () + "Run help:effective-settings for plugin at point." + (interactive) + (shell-command + (format "%s help:effective-settings" maven.command) + (switch-to-buffer maven.help-buffer-name)) ) + +(defun maven.dependency-tree () + "Run dependency:tree for plugin at point." + (interactive) + (shell-command + (format "%s dependency:tree" maven.command) + (switch-to-buffer maven.help-buffer-name)) ) + ;; (maven-central.last-version "junit" "junit") (provide 'maven-central)