branch: elpa/drupal-mode
commit f17e7088ca74d73f65b055963d11d93c540e1e6f
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>

    Provide Drupal projects as webjump sites.
    
    Closes #27.
---
 drupal-mode.el    |  2 ++
 drupal/webjump.el | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/drupal-mode.el b/drupal-mode.el
index 62b0b42dcb..77f24c721f 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -661,6 +661,8 @@ mode-hook."
 (eval-after-load 'gtags '(require 'drupal/gtags))
 (eval-after-load 'ispell '(require 'drupal/ispell))
 (eval-after-load 'flymake-phpcs '(require 'drupal/flymake-phpcs))
+;;;###autoload
+(eval-after-load 'webjump '(require 'drupal/webjump))
 
 
 
diff --git a/drupal/webjump.el b/drupal/webjump.el
new file mode 100644
index 0000000000..99b77e55b1
--- /dev/null
+++ b/drupal/webjump.el
@@ -0,0 +1,35 @@
+;;; drupal/webjump.el --- Drupal projects as webjump sites
+
+;; Copyright (C) 2012  Arne Jørgensen
+
+;; Author: Arne Jørgensen <[email protected]>
+
+;; Drupal mode is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published
+;; by the Free Software Foundation, either version 3 of the License,
+;; or (at your option) any later version.
+
+;; Drupal mode is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with Drupal mode.  If not, see
+;; <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; Provide Drupal projects as webjump sites.
+
+;;; Code:
+
+(require 'webjump)
+
+(add-to-list 'webjump-sites '("Drupal" . [simple-query "drupal.org" 
"drupal.org/project/" ""]))
+
+
+
+(provide 'drupal/webjump)
+
+;;; drupal/webjump.el ends here

Reply via email to