From 5ea0f20b9ae538a332d1a7920a05a59d51dc8c4d Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Fri, 30 Mar 2012 15:26:12 +0300 Subject: [PATCH] added mediawiki support --- init.el | 1 + modules/prelude-mediawiki.el | 43 ++++++++++++++++++++++++++++++++++++ modules/prelude-packages.el | 4 ++-- 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 modules/prelude-mediawiki.el diff --git a/init.el b/init.el index 7760481..bebcdb7 100644 --- a/init.el +++ b/init.el @@ -93,6 +93,7 @@ by Prelude.") ;; tools & utilities support (require 'prelude-ack) (require 'prelude-erc) +(require 'prelude-mediawiki) ;; config changes made through the customize UI will be store here (setq custom-file (concat prelude-personal-dir "custom.el")) diff --git a/modules/prelude-mediawiki.el b/modules/prelude-mediawiki.el new file mode 100644 index 0000000..cc57299 --- /dev/null +++ b/modules/prelude-mediawiki.el @@ -0,0 +1,43 @@ +;;; prelude-mediawiki.el --- Emacs Prelude: mediawiki editing config +;; +;; Copyright (c) 2011 Bozhidar Batsov +;; +;; Author: Bozhidar Batsov +;; URL: http://www.emacswiki.org/cgi-bin/wiki/Prelude +;; Version: 1.0.0 +;; Keywords: convenience + +;; This file is not part of GNU Emacs. + +;;; Commentary: + +;; Basic configs for access to WikEmacs and Wikipedia. + +;;; License: + +;; This program 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. +;; +;; This program 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 GNU Emacs; see the file COPYING. If not, write to the +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. + +;;; Code: + +(require 'mediawiki) + +(setq mediawiki-site-alist '(("Wikipedia" "http://en.wikipedia.org/w" "" "" "Main Page") + ("WikEmacs" "http://wikemacs.org/w/" "" "" "Main Page"))) + +;; Emacs users care more for WikEmacs than Wikipedia :-) +(setq mediawiki-site-default "WikEmacs") + +;;; prelude-mediawiki.el ends here diff --git a/modules/prelude-packages.el b/modules/prelude-packages.el index 8c187a5..4522736 100644 --- a/modules/prelude-packages.el +++ b/modules/prelude-packages.el @@ -41,8 +41,8 @@ (defvar prelude-packages '(ack-and-a-half auctex clojure-mode coffee-mode deft expand-region gist groovy-mode haml-mode haskell-mode inf-ruby - magit magithub markdown-mode paredit projectile python - sass-mode rainbow-mode scss-mode solarized-theme + magit magithub markdown-mode mediawiki paredit projectile + python sass-mode rainbow-mode scss-mode solarized-theme volatile-highlights yaml-mode yari zenburn-theme) "A list of packages to ensure are installed at launch.")