您的位置:首页 > 其它

Introduction to MWB Minor Mode

2013-10-30 14:21 288 查看


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Introduction to MWB Minor Mode



/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.

Copyright (C) 2012 Free Software Foundation, Inc.

The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.

As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.

@licend The above is the entire license notice
for the JavaScript code in this tag.
*/


Table of Contents

1. Introduction

2. Usage

1 Introduction

MWB stands for "MetaWeblog", it is an submode for org mode and can be used to
publish org files to meta web blog.

It is based on CnBlog, and was modified to port to other meta web blogs.

2 Usage

Download this package from github and put into PATH , then add
following codes to your init file.

(add-to-list 'load-path PATH)
(autoload 'mwb-minor-mode "mwb" "mwb minor mode" t)
(autoload 'mwb-new-post "mwb" "new post" t)


If you want to turn on mwb-minor-mode automatically for some mode (org-mode,
for example), you can add following line:

(add-to-list 'org-mode-hook 'mwb-minor-mode)


Then, open an org file, and stroke: M-x: mwb-setup-blog, and follow the
instructions.

When finished setting up, edit an org file, and stroke: M-x: mwb-new-post,
and then waits for the post to be done.

That's all.

(使用许可:署名-非商业性使用-相同方式共享 3.0 中国大陆许可协议 。)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: