https://wikemacs.org/api.php?action=feedcontributions&user=166.84.161.166&feedformat=atomWikEmacs - User contributions [en]2024-03-19T05:41:12ZUser contributionsMediaWiki 1.35.14https://wikemacs.org/index.php?title=Mediawiki.el&diff=2214Mediawiki.el2012-04-01T20:57:52Z<p>166.84.161.166: /* Edit or Create a page in web browser */</p>
<hr />
<div>{{Package<br />
|name=mediawiki.el<br />
|description=Mediawiki interface and markup mode<br />
|maintainer=Mark A. Hershberger<br />
|source=https://code.launchpad.net/~hexmode/mediawiki-el/trunk<br />
|in_emacs=no<br />
|Development status=active<br />
|website=https://code.launchpad.net/~hexmode/mediawiki-el<br />
}}<br />
<br />
'''Mediawiki.el''' is a package to help add content to any mediawiki<br />
site including ''WikEmacs''. It comes with a [[Major Mode]] to support editing<br />
Mediawiki markup.<br />
<br />
==Setup==<br />
<br />
Install '''mediawiki.el''' from [[el-get]] or [[ELPA]].<br />
<br />
==Customization==<br />
<br />
; {{Command|load-library RET mediawiki RET}}<br />
: Load the library <br />
<br />
; {{CustomizeVariable|mediawiki-site-alist}}<br />
: Configure as follows and save your settings<br />
:: '''Site Name''': WikEmacs<br />
:: '''URL''': ''http://wikemacs.org/w/''<br />
:: '''Username''': ''InCognito''<br />
:: '''Password''': ''s!cr!t''<br />
:: '''First Page''': ''Main Page''<br />
: You can provide "Username" and "Password" in your [[.authinfo]] file. home directory.<br />
<br />
Alternatively you can add this snippet of Emacs Lisp code to your<br />
[[.emacs]]:<br />
<br />
<syntaxhighlight lang="lisp"><br />
(require 'mediawiki)<br />
<br />
(setq mediawiki-site-alist '(("Wikipedia" "http://en.wikipedia.org/w" "" "" "Main Page")<br />
("WikEmacs" "http://wikemacs.org/w/" "" "" "Main Page")))<br />
<br />
;; Emacs users care more for WikEmacs than Wikipedia :-)<br />
(setq mediawiki-site-default "WikEmacs")<br />
</syntaxhighlight><br />
<br />
You can naturally add more MediaWiki sites to the<br />
'''mediawiki-site-alist''' variable.<br />
<br />
==Usage==<br />
; {{Command|mediawiki-site}}<br />
: Choose a site (say "WikEmacs") for the current session. <br />
<br />
; {{CommandKeys|C-c C-o|mediawiki-open}}<br />
: Open a page. To edit the main page, type "Main Page". Make your edits.<br />
<br />
; {{CommandKeys|C-x C-s|mediawiki-save}}<br />
: Submit your modifications.<br />
<br />
; {{CommandKeys|C-c|mediawiki-save-and-bury}}<br />
: Submit modifications and bury the buffer.<br />
<br />
== Helpful Keybindings==<br />
<br />
; {{CommandKeys|C-return|mediawiki-open-page-at-point}}<br />
: Follow or browse to a WikiLink.<br />
<br />
; {{CommandKeys|M-g|mediawiki-reload}}<br />
: Reload a page<br />
<br />
==Customizations==<br />
=== Word Wrapping ===<br />
Mediawiki sites are generally [[Fill | unfilled ]].<br />
[[Newline character]] are not used for breaking paragraphs. Emacs does supports [[word wrap]] but from [Emacs 24].<br />
<br />
==== Emacs 24 ====<br />
You may want to turn on word wrapping.<br />
<br />
<syntaxhighlight lang="lisp"><br />
(setq mediawiki-mode-hook (lambda ()<br />
(visual-line-mode 1)))<br />
</syntaxhighlight><br />
<br />
=== Edit or Create a page in a web browser ===<br />
<br />
Right now '''Mediawiki.el''' fails silently whenever the site asks for number challenge<br />
(spam protection). The following snippet allows you to edit/create a<br />
page in a web browser<br />
<br />
<syntaxhighlight lang="lisp"><br />
(defun yyr-mediawiki-browser-edit/create-page (page &optional site)<br />
"Edit a page in browser, asks for page name (sitename also if needed)"<br />
(interactive "sPage name (words): ")<br />
(let* ((site (mediawiki-prompt-for-site))<br />
(url (mediawiki-site-extract site 1))<br />
(index "index.php?title=")<br />
(et "&action=edit"))<br />
(funcall 'browse-url<br />
(message "%s%s%s%s"<br />
url index (mediawiki-translate-pagename page) et))))<br />
</syntaxhighlight><br />
<br />
Call {{Function| yyr-mediawiki-browser-edit/create-page}}<br />
<br />
=== key binding to open current editing file in web browser? ===<br />
<br />
bind {{Function|mediawiki-browse}} to some key chord. The following<br />
uses {{Keys|C-c o}}<br />
<br />
<syntaxhighlight lang="lisp"><br />
<br />
(define-key mediawiki-mode-map (kbd "C-c o") 'mediawiki-browse)<br />
<br />
</syntaxhighlight><br />
<br />
<br />
<br />
<br />
==External Links==<br />
*[http://www.emacswiki.org/emacs/MediaWikiMode EmacsWiki:MediaWikiMode]<br />
*[https://launchpad.net/mediawiki-el Project Page]<br />
<br />
<br />
[[Category:Wikemacs]]<br />
[[Category:Markup Modes]]<br />
[[Category:Wikemacs Contributor]]<br />
[[Category:Wikemacs Contributor]]<br />
[[Category:Markup Modes]]<br />
[[Category:Third Party Package]]<br />
[[Category:Markup languages]]</div>166.84.161.166https://wikemacs.org/index.php?title=Email&diff=2060Email2012-03-31T20:41:30Z<p>166.84.161.166: Clean up the language -- the english before was confusing and much of it read like ad copy anyway.</p>
<hr />
<div>Emacs provides a number of packages for reading and composing<br />
electronic mail and Usenet news.<br />
<br />
== Packages for reading email ==<br />
<br />
The following packages are in-Emacs applications for reading mail:<br />
<br />
* [[ gnus ]]<br />
* [[ mh-mode ]]<br />
* [[ vm ]]<br />
* [[ wanderlust ]]<br />
<br />
The following packages are often used for email composition:<br />
<br />
* [[ message-mode ]]<br />
<br />
[[Category:Email]]</div>166.84.161.166https://wikemacs.org/index.php?title=Email&diff=2059Email2012-03-31T20:35:27Z<p>166.84.161.166: Make a sentence cleaner.</p>
<hr />
<div>With Emacs best editing and extensible capabilities, It makes easy for<br />
users to compose and read mails [[news]] and other feeds within Emacs.<br />
Emacs comes with [[mh | mail handler ]] , [[message-mode]] and<br />
[[Gnus]] for helping users read variety of mails, messages, news and<br />
other feeds. There are also other [[Category:Third Party package]]s<br />
for this purpose.<br />
<br />
== Packages for reading emails ==<br />
<br />
The following packages can be used for reading mail within Emacs:<br />
<br />
* [[ gnus ]]<br />
* [[ vm ]]<br />
* [[ wanderlust ]]<br />
<br />
[[Category:Email]]</div>166.84.161.166https://wikemacs.org/index.php?title=Wanderlust&diff=2048Wanderlust2012-03-31T19:30:24Z<p>166.84.161.166: Created page with "{{Package |name=Wanderlust |description=Wanderlust is an e-mail client especially suited to IMAP. |source=https://github.com/wanderlust/ |in_emacs=no |Development status=activ..."</p>
<hr />
<div>{{Package<br />
|name=Wanderlust<br />
|description=Wanderlust is an e-mail client especially suited to IMAP.<br />
|source=https://github.com/wanderlust/<br />
|in_emacs=no<br />
|Development status=active<br />
}}<br />
<br />
== Introduction ==<br />
Wanderlust is an in-Emacs mail reading application intended for use with IMAP. It is preferred by many expert Emacs users because it has by far the best native IMAP support of any Emacs mail reading system, but it is very poorly documented (at least in English) and a challenge for naive users to install and configure.<br />
<br />
Unfortunately, the Wanderlust home page, at [http://www.gohome.org/wl/], has not been maintained in many years. Development appears to take place almost entirely within various informal github repositories. A full list of packages needed to run Wanderlust includes:<br />
<br />
https://github.com/wanderlust/flim<br />
<br />
https://github.com/wanderlust/semi<br />
<br />
https://github.com/wanderlust/apel<br />
<br />
https://github.com/wanderlust/wanderlust<br />
<br />
Wanderlust is not currently available in [[ELPA]].<br />
<br />
[[Category:Email]][[Category:Mail Client]][[Category:Native Package]][[Category:Popular Package]]</div>166.84.161.166https://wikemacs.org/index.php?title=Email&diff=2047Email2012-03-31T19:18:24Z<p>166.84.161.166: /* Modes */</p>
<hr />
<div>== Modes ==<br />
<br />
These modes are effectively in-emacs applications:<br />
<br />
* [[ gnus ]]<br />
* [[ vm ]]<br />
* [[ wanderlust ]]</div>166.84.161.166