merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 06 Mar 2014 23:29:10 +0200
changeset 1113 b0aec76c3745
parent 1110 6b18658edec8 (diff)
parent 1112 1fc59cf19c28 (current diff)
child 1114 10adeb987567
merged
.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")
 
--- 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)