Difference between revisions of "Mediawiki.el"
Jump to navigation
Jump to search
m (add link to EmacsWiki:MediaWikiMode, transfer content later) |
|||
Line 10: | Line 10: | ||
Mediawiki markup. | Mediawiki markup. | ||
− | = | + | ==Setup== |
Install '''mediawiki.el''' from [[el-get]] or [[ELPA]]. | Install '''mediawiki.el''' from [[el-get]] or [[ELPA]]. | ||
− | = Customization = | + | ==Customization== |
; {{Command|load-library RET mediawiki RET}} | ; {{Command|load-library RET mediawiki RET}} | ||
Line 44: | Line 44: | ||
'''mediawiki-site-alist''' variable. | '''mediawiki-site-alist''' variable. | ||
− | = | + | ==Usage== |
− | |||
; {{Command|mediawiki-site}} | ; {{Command|mediawiki-site}} | ||
: Choose a site (say "WikEmacs") for the current session. | : Choose a site (say "WikEmacs") for the current session. | ||
Line 58: | Line 57: | ||
: Submit modifications and bury the buffer. | : Submit modifications and bury the buffer. | ||
− | = Helpful Keybindings = | + | == Helpful Keybindings== |
; {{CommandKeys|C-return|mediawiki-open-page-at-point}} | ; {{CommandKeys|C-return|mediawiki-open-page-at-point}} | ||
Line 66: | Line 65: | ||
: Reload a page | : Reload a page | ||
− | = Customizations = | + | ==Customizations== |
Mediawiki sites are generally [[Fill | unfilled ]]. | Mediawiki sites are generally [[Fill | unfilled ]]. | ||
[[Newline character]] are not used for breaking paragraphs. Emacs | [[Newline character]] are not used for breaking paragraphs. Emacs | ||
Line 79: | Line 78: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | ==External Links== | ||
+ | *[http://www.emacswiki.org/emacs/MediaWikiMode EmacsWiki:MediaWikiMode] | ||
+ | *[https://launchpad.net/mediawiki-el Project Page] | ||
Line 84: | Line 87: | ||
[[Category:Markup Modes]] | [[Category:Markup Modes]] | ||
[[Category:Wikemacs Contributor]] | [[Category:Wikemacs Contributor]] | ||
− | |||
− | |||
− | |||
− | |||
[[Category:Wikemacs Contributor]] | [[Category:Wikemacs Contributor]] | ||
[[Category:Markup Modes]] | [[Category:Markup Modes]] | ||
[[Category:Third Party Package]] | [[Category:Third Party Package]] | ||
[[Category:Markup languages]] | [[Category:Markup languages]] |
Revision as of 21:46, 30 March 2012
Description | Mediawiki interface and markup mode |
---|---|
Author | name of author |
Maintainer | Mark A. Hershberger |
Source | https://code.launchpad.net/~hexmode/mediawiki-el/trunk |
Mediawiki.el is a package to help add content to any mediawiki site including WikEmacs. It comes with a Major Mode to support editing Mediawiki markup.
Setup
Install mediawiki.el from el-get or ELPA.
Customization
- M-x load-library RET mediawiki RET
- Load the library
- M-x customize-variable RET mediawiki-site-alist
- Configure as follows and save your settings
- Site Name: WikEmacs
- URL: http://wikemacs.org/w/
- Username: InCognito
- Password: s!cr!t
- First Page: Main Page
- You can provide "Username" and "Password" in your .authinfo file. home directory.
Alternatively you can add this snippet of Emacs Lisp code to your .emacs:
(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")
You can naturally add more MediaWiki sites to the mediawiki-site-alist variable.
Usage
- M-x mediawiki-site
- Choose a site (say "WikEmacs") for the current session.
- [C-c C-o] (or M-x mediawiki-open)
- Open a page. To edit the main page, type "Main Page". Make your edits.
- [C-x C-s] (or M-x mediawiki-save)
- Submit your modifications.
- [C-c] (or M-x mediawiki-save-and-bury)
- Submit modifications and bury the buffer.
Helpful Keybindings
- [C-return] (or M-x mediawiki-open-page-at-point)
- Follow or browse to a WikiLink.
- [M-g] (or M-x mediawiki-reload)
- Reload a page
Customizations
Mediawiki sites are generally unfilled . Newline character are not used for breaking paragraphs. Emacs does supports word wrap but from [Emacs 24].
Emacs 24
You may want to turn on word wrapping.
(setq mediawiki-mode-hook (lambda ()
(visual-line-mode 1)))