Introduction to MWB Minor Mode

2016年8月14日 14:05

Introduction to MWB Minor Mode

Introduction to MWB Minor Mode

Table of Contents

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.

=Ditaa= Source Code Blocks in Org Mode

2014年11月07日 04:37

<code>Ditaa</code> Source Code Blocks in Org Mode

继续阅读

Is there a possibility to convert enumerator names to string in C?

阅读全文

Git 基础 - 打标签

2014年11月05日 03:47

同大多数 VCS 一样,Git 也可以对某一时间点上的版本打上标签。人们在发布某个软件版本(比如 v1.0 等等)的时候,经常这么做。本节我们一起来学习如何列出所有可用的标签,如何新建标签,以及各种不同类型标签之间的差别

阅读全文

updated_css

2014年10月30日 18:50

阅读全文

Using CMake to organize the source code is pretty cool, because you can quickly generate from it Visual Studio solution files on Windows and make files on Linux, and therefore build and test the code on different platforms without maintaining two separate build scripts. However, CMake does not officially support Android yet. You cannot specify an Android target and ask CMake to generate from your CMakeLists.txt the make files for Android. Luckily some folks have already started to empower us with CMake for Android. One of the efforts is android-cmake. I used the latest version from GitHub android-cmake maintained by taka-no-me. Below is a step-by-step walkthrough.

阅读全文

Repost: Speed Up Git (5x to 50x)

2014年10月15日 14:46

Results may vary, depending on distance from your Git servers. In my completely unscientific benchmarks using time, after the following steps, git pull went from ~5s, using GitHub, to ~0.1s, using EC2 on AWS Singapore.

阅读全文

Designated Initializer & C++

2014年10月13日 17:19

It's too late now to make changes to the C++11 FDIS, and yet it's still worth looking at two core-language features that were added to C99 and never made it into C++.

阅读全文

Cpp Memo part 5 -- Conditionals

2014年10月10日 23:05

Cpp Memo part 5 – Conditionals

继续阅读

环境 系统:Linux luogw-pc 3.5.0-36-generic #57~precise1-Ubuntu SMP Thu Jun 20 18:21:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux ndk: ndk-r8d cache: ccache version 3.1.6

阅读全文