Difference between revisions of "Mediawiki-el"

From ArchWiki
Jump to: navigation, search
(Configuration)
(Configuration)
Line 22: Line 22:
  
 
  (setq mediawiki-site-alist
 
  (setq mediawiki-site-alist
       (append '("ArchWiki" "https://wiki.archlinux.org/" "username" "password")
+
       (append '("ArchWiki" "https://wiki.archlinux.org/" "username" "password" "Main Page")
 
               mediawiki-site-alist))
 
               mediawiki-site-alist))
 +
 +
Where ''Archwiki'' is the name for the site. ''https:/wiki.archlinux.org/'' is the url of the site and ''username'' and ''password'' is your username and password of this site. ''Main Page'' is the default page opened when you connect to the site.
  
 
== Usage ==
 
== Usage ==

Revision as of 13:52, 7 August 2011

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary end

Installation

There is a package in AUR:Template:Package AUR.

Or you can directly download the source from https://launchpad.net/mediawiki-el .

Configuration

After you install the package from AUR, open your emacs configuration file (usually, Template:Filename) and add the following line in it.

(require 'mediawiki)

Then add the mediawiki sites to the configuration file. For example, the following line adds ArchWiki to it.

(setq mediawiki-site-alist
      (append '("ArchWiki" "https://wiki.archlinux.org/" "username" "password" "Main Page")
              mediawiki-site-alist))

Where Archwiki is the name for the site. https:/wiki.archlinux.org/ is the url of the site and username and password is your username and password of this site. Main Page is the default page opened when you connect to the site.

Usage

See also