Difference between revisions of "Emacs Mediawiki"

From ArchWiki
Jump to: navigation, search
(Re-catogory. Best fit in Text editors only. See Talk:Table of Contents#Merge Category:Wiki Tools to Category:ArchWiki.)
Line 1: Line 1:
[[Category:Text editors]]
[[Category:Text editors]]
[[Category:Wiki Tools]]
{{i18n|Emacs Mediawiki}}
{{i18n|Emacs Mediawiki}}
Line 7: Line 6:
{{Article summary heading|Related}}
{{Article summary heading|Related}}
{{Article summary wiki|Emacs}}
{{Article summary wiki|Emacs}}
{{Article summary wiki|AboutWiki}}
{{Article summary wiki|ArchWiki:About}}
{{Article summary end}}
{{Article summary end}}
== Installation ==
== Installation ==

Revision as of 03:47, 27 April 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Summary help replacing me
Emacs Mediawiki Mode is an emacs major mode which is evolved from an old copy of mediawiki mode frome wikipedia.org. It helps to edit remote wiki articles on wiki sites running mediawiki in emacs editor directly.


There is a package in AUR:emacs-mediawiki-bzrAUR.

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


After you install the package from AUR, open your emacs configuration file (usually, ~/.emacs) 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")

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.

Other sites can also be added by appending the configuration list to the list variable mediawiki-site-alist.


After the configuration, you can use emacs to edit the wiki pages directly. Open your emacs and do the following to connect to the site.

M-x mediawiki-site RET {site name} RET

Now that you are connected, the default page should be opened. If you would rather edit another page. do the following to open it.

M-x mediawiki-open RET {page title} RET

Some useful keybindings are:

  • C-x C-s – save this page
  • C-c C-c – save this page and bury the buffer
  • C-return – open the page under point for editing
  • TAB – go to the next wiki link
  • M-n – next page in the page ring
  • M-p – previous page in the page ring
  • M-g – reload the current page

Now enjoy editing wiki pages in emacs!

See also