![[Home]](https://www.emacswiki.org/images/logo218x38.png)
Oddmuse Curl Mode is a fork of a very old revision of OddmuseMode maintained by AlexSchroeder. Use it to edit Oddmuse wikis such as Emacs Wiki.
Cool features:
The code is maintained on GitHub using Git:
A typical setup:
;;; Oddmuse (setq oddmuse-username "AlexSchroeder") (add-to-list 'auto-mode-alist '("/Users/alex/.emacs.d/oddmuse" . oddmuse-mode)) (autoload 'oddmuse-edit "oddmuse-curl" "Edit a page on an Oddmuse wiki." t) (add-to-list 'vc-handled-backends 'oddmuse) (defun vc-oddmuse-registered (file) "Handle files in `oddmuse-directory'." (string-match (concat "^" (expand-file-name oddmuse-directory)) (file-name-directory file)))
Adding to ‘vc-handled-backends’ and the definition of ‘vc-oddmuse-registered’ would be part of autoloads, if this file was distributed with Emacs. As it stands, you could instead (require 'vc-oddmuse). It’s just that I want to keep my Emacs startup speed down and that’s why I don’t.
‘oddmuse-edit’ asks you for a wiki and a page name and allows you to edit it.
Once you’re editing a wiki page, here are some useful keybindings:
‘C-c C-b’ ‘C-c C-c’ ‘C-c C-e’ ‘C-c C-f’ ‘C-c C-h’ ‘C-c C-i’ ‘C-c C-m’ ‘C-c C-n’ ‘C-c C-p’ ‘C-c C-r’ ‘C-c C-s’ ‘C-c C-t’ ‘C-x C-v’ ‘C-x v l’ ‘C-x v =’ ‘C-x v u’ This mode is in part an illustration of how to use a generic command line tool like ‘curl’ to edit Oddmuse wikis.
OSX already comes with curl.
On Windows, I use curl installed via CygWin, as you can see from my eshell buffer:
~ $ which curl c:/cygwin64/bin/curl.exe
More information on the curl homepage.