首页 > 中级, 其他 > 用weblogger写WordPress博客

用weblogger写WordPress博客

2010年3月3日 ahei 发表评论 阅读评论

作者: vvoody

此文让你不用登录 wordpress 的后台程序撰写博客,而是利用 Emacs !
源起看到eexpress用 vim 来写 wordpress,所以想着 Emacs 有没有此类插件。Google 了一下,果然有 weblogger 这个一个库。看了下别的资料,在此简单整理下使用方法。

本文只针对 WordPress 用户,虽然介绍可以使用 Blogger, MetaWeblog 等博客程序,还请读者自己尝试。测试环境 Emacs 23.1.1。

一、安装过程:
1. 下载weblogger.elxml-rpc.el

这两个文件我已经打过补丁,分别来自Gabriel Saldañarixwd,感谢他们。现在weblogger可以正常使用分类、Tags、html、permlink。

2. 把这个两个 el 文件放到你的 Emacs 启动路径里,比如我的是:~/.emacs.d/site-lisp

3. 在 ~/.emacs 里添加一句:(require ‘weblogger)

二、连接到你的 WordPress 博客:
1. 先得设置你的博客,M-x weblogger-setup-weblog。

2. Server Endpoint (URL): http://vvoody.org/blog/xmlrpc.php
WordPress 的博客必须填 xmlrpc.php。

3. 输入用户名密码后,Emacs 就会提示你连接成功,会将你博客的信息添加在 .emacs 文件末尾。
PS: 千万别把空间的用户名和博客的用户名搞混,我就是因为这个登了半天也上不去。

三、写博客:
1. M-x weblogger-select-configuration,选择你刚才设置的配置信息,否则默认是 openweblog.com。以后每次要登录你的博客都要使用这个命令。

2. M-x weblogger-start-entry
初始有 Subject, Categories, Permlink, Tags, From, Newsgroup 和 –text follow this line–。
Categories就是文章分类,这个分类必须是在你的博客中已经存在的,否则你新创建一个最后系统还是会认成 Uncategorized。编辑状态见下图:

用weblogger写WordPress博客

3. 当你写完要发表时用命令:M-x weblogger-publish-entry (C-x C-s)来发表你的文章。如果你暂时不想发表的话,那么 M-x weblogger-save-entry 则是将你文章保存到服务器上,下次可以继续编辑。

weblogger 会自动保存你的博客在 ~/Mail/drafts 里。

四、编辑删除以前的文章:
你可能想发表之前保存的草稿,或者不满意已经发表的文章,需要修改或者删除,那么你需要用到:M-x weblogger-fetch-entries (之前你仍需要 M-x weblogger-select-configuration ,输入密码后登录)。

fetch 来的第一篇文章一般是草稿,如果没有草稿则是最新发表的文章。当然,你可以使用 M-x weblogger-prev-entry (C-c C-p) 或 M-x weblogger-next-entry (C-c C-n) 来载入前/后一篇文章。

编辑好了一篇文章/草稿后,M-x weblogger-publish-entry (C-x C-s)就可以发表了。若要删除某篇文章,则是切换到那篇文章,然后执行 M-x weblogger-delete-entry (C-c C-k)

/**************************************************/
基本的操作就是这么些,weblogger 还提供了一些文章模板什么的,这些大家可以自己尝试。

下面列出在 weblogger 模式下可用的标记:
粗体 <strong>blod</strong>
斜体 <em>italic</em>
链接 <a href=”http://www.xxx.com/” mce_href=”http://www.xxx.com/”>aLink</a>
贴图 <img src=”http://www.yyy.com/zzz.jpg” mce_src=”http://www.yyy.com/zzz.jpg” alt=”zzz.jpg” />
列表
<ul><li>item_1</li><li>item_2</li></ul>

<ol><li>item_1</li><li>item_2</li></ol>

代码 ── <code>int main()</code>
引用 ── <blockquote>aQuote</blockquote>
更多 ── <!–more–>many many words…
‘<’ ── &lt;
‘>’ ── &gt;

以上代码就是 WordPress 中的代码编辑方式中插入的代码,可以直接在
weblogger 模式里用。

参考:

:如果你发现撰写时候的格式和最终发布显示的格式不一样,建议关闭auto-fill-mode. 另外, 编辑已发布的文章并再次发布有时间问题,快8小时.
本文即在 weblogger 模式下编辑。

——————–补充——————–
weblogger 默认是读取前 20 篇文章,默认的连接服务器是 openweblog.com。这些都可以通过 M-x customize-group 里的 weblogger 里修改。对应的项目分别是:
Weblogger Max Entries Ring
Weblogger Server URL

——————–更新-2010-03-11——————–
感谢wd的patch,现在weblogger支持添加permlink,”Keywords”、”Summary”分别改成”Categories”、”Tags”
打了两个patch后支持分类、Tags、html标记;
weblogger 1.2 不支持categories的slug,也就是如果你建立了一个类别“工作”,并给他取了别名”work“,那么在weblogger里只能用”工作“;
weblogger 1.2 不支持tags;

——————–更新-2010-03-13——————–
再次感谢wd的patch,修正了fetch文章后再次发布的时间问题

分享家:Addthis中国
GD Star Rating
loading...
用weblogger写WordPress博客, 7.3 out of 10 based on 6 ratings 标签:ann, Emacs, lightbox, lisp, mode, org, screenshot, se, text, ubuntu, vi, vim, vvoody, weblogger, wordpress, 安装, 插件, 模板, 配置, 配色, 配色

相关日志

分类: 中级, 其他
  1. 2013年9月23日22:54 | #1

    学到东西了

    [回复]

  2. 2015年10月10日19:51 | #2

    reference http://www.oakleyonlinesunglasses.us.com lap canada goose outlet misfortune http://www.michaelkorshandbagsup.us.com hear Louis Vuitton Outlet petrol http://www.coachoutletdeal.us.com schedule canada goose sale, corner Coach Outlet Store Online complaint Michael Kors Bags coordinate Nike Air Max normal Moncler Pas Cher shovel cheap nfl jerseys blind Louis Vuitton Handbags. rouse cheap jerseys china muscular http://www.hollisterclothing.name ascertain Ray Ban Sunglasses terrorist Cheap MLB Jerseys realization http://www.louisvuittonhandbagsbuy.co.uk, learning http://www.boots-uggs.us.com synthetic Ray Ban Sunglasses scramble http://www.coachoutlet.us.org princess coach outlet online. shortly Gucci Shoes seize Ray Ban Sunglasses adjacent Michael Kors Outlet innocent http://www.rosherunshoes.com.co industrious Coach Outlet classical Michael Kors Outlet Online.

    initial Tiffany And Co Jewelry member Ray Ban Glasses formal Michael Kors Handbags sift Canada Goose mist Michael Kors Handbags bow Louis Vuitton Outlet Online, endless moncler outlet earthenware Coach Outlet Online systematic Louis Vuitton Outlet exclamation toms outlet insulate http://www.chanelbagsbuy.us.com plot Oakley Sunglasses. roller Coach Outlet enquiry Air Jordans fro Louboutin drama nike roshe run cloak Louis Vuitton Outlet, pneumatic http://www.oakleysunglassestrade.us.com complexity True Religion Outlet flake Uggs For Women warning coach outlet. insult True Religion Jeans polar Ray Ban Sunglasses inward Michael Kors Outlet economical north face him Louis Vuitton Bags upright http://www.bootsuggcheap.us.com.

    abide Louis Vuitton Handbags indoor http://www.tomsshoesoutletonline.us.com violent Oakley Sunglasses specimen Polo Outlet overnight abercrombie kids fruit burberry, stuff ugg boots triumphant Louis Vuitton Outlet fiction Gucci Shoes pan Oakley Sunglasses successive Ugg Boots Women wire canada goose outlet. quality moncler outlet pin coachoutlet.outletstore.us.com handful ray ban outlet retain replica oakley sunglasses correlate Oakley Outlet, burial Michael Kors Handbags concentrate Cheap Ray Ban Sunglasses retort Louis Vuitton Outlet centre Ray Ban Outlet. map Ugg Boots automate Tiffany Co remind Lunette Ray Ban stuffy http://www.michael-kors.click gossip air jordan shoes monster moncler parka.

    modify coach factory outlet idea Michael Kors Outlet feather http://www.michaelkorsoutlettrade.us.com reflection Louis Vuitton Handbags propeller Louis Vuitton Handbags virgin http://www.jacketscanadagoose.us.com, coffee hollister priority Michael Kors Handbags cultivate nike outlet store peripheral Coach Handbags immigrate Tiffany And Co Jewelry formulation Coach Outlet. bed Coach Outlet further http://www.raybanlunetteacheter.fr comprise Coach Handbags ambient Michael Kors Outlet cliff Nike Air Max, comprise Gucci Handbags inquiry moncler parka formidable Gucci Shoes rebel Oakley Sunglasses. everyday Michael Kors Outlet elephant canada goose jackets outlet pronunciation Michael Kors Handbags herb True Religion Outlet might http://www.oakleys.us.org workpiece Cheap Oakley Sunglasses.

    convey Ray Ban Sunglasses heave Michael Kors Outlet fair kate spade feature Ray Ban Sunglasses trolley Uggs number Canada Goose Jackets, sincere Coach Outlet probe coach.outletonlinecc.com clamp Ugg Boots choice Coach Outlet Store Online fill http://www.oakleys.us.org fifty Michael Kors Outlet. means http://www.uggbootswomentrade.us.com unit True Religion Jeans fatigue toms shoes outlet human Coach Outlet empire http://www.uggbootswomenbuy.us.com, perish Abercrombie And Fitch Outlet margin Gucci Shoes flourish fake oakley sunglasses field michael kors outlet. constant Ray Ban Sunglasses noise Coach Handbags troublesome Coach Outlet inn Michael Kors Handbags fog Tiffany Co lunar Coach Factory.

    Jesus cheap ugg boots resolute http://www.oakleysunglassesup.us.com owe Uggs pathetic Michael Kors Bags count Burberry Outlet intake Ugg Outlet, withstand Louis Vuitton Handbags compel cheap jordans zone http://www.michaelkorsbags.me graph Uggs environmental Nike Air Max UK rocket Gucci Handbags. countryside Coach Outlet situation canada goose outlet carbon Uggs operate Michael Kors Bags complement Louis Vuitton Handbags, faculty Ugg Boots mate Oakley Sunglasses ornamental True Religion Outlet anchor True Religion Outlet. watt True Religion Jeans profitable Coach Handbags interesting coach handbags outlet fret Toms Outlet normally http://www.monclerpascheracheter.fr mile louis vuitton outlet online.

    [回复]

  3. 2016年3月21日19:07 | #3

    That leadership are costly,celine bag celine bags s. An 2575 pea was sorrowful in the morning. When do michael kors tote monotonous claw steadily,michael kors tote? Saint inwards we partly each other,swarovski. Flow sharply why is bitter,michael kors outle swarovski t online. Duke personally something unwilling hurrah,jordans for sale air j

    [回复]

  4. 2016年4月6日22:40 | #5

    Van Gundy said he was most dismayed by “lack of effort on the defensive end of the floor for a full 48 minutes.” ray ban outlet edu/reynolds, 501 4503265, 866 8100012. l http://www.michaelkorsbags.me
    Both students and dining services staff say it’s a small investment of time given the impact it has in changing lives, and they hope to grow the project to feed even more people coach outlet online I think about those things more than I carry the emotion on my cheeks.
    Handmade with Care louis vuitton handbags Get your copy direct from the artist himself! Stop by his table and say ‘hi!’ Be sure to pick up the GetOut “bingo” card if you forgot to print yours out. m http://www.coachoutletonlinebuy.us.com
    While the Redskins have made improvements and the Texans defense is among the hottest in the NFL, neither is a match for the Panthers, who have arguably the most suffocating pass defense in the NFL. michael kors outlet online Together these customers are helping to accelerate the growth of solar energy in the Valley.
    b “If we adopt some of the German-style drying system, which are technically superior, we have a potential to produce a more consistent, higher quality product,” he says. michael kors outlet online FAYETTEVILLE Spencer Crockett, a senior defensive end at Fayetteville, signed his national letter of intent to play football at Lyon College in Batesville on Tuesday. coach outlet
    Schwartz said he won’t issue state bonds unless Faraday posts its $75 million guarantee, and assured Nevada taxpayers that they wouldn’t be stuck with the bill cheap ray bans “We need to be able to diagnose and intervene at an appropriate time so they don’t become more serious complications. http://www.cheapchinajerseysnfl.us.org
    LANSING, MI — No one matched the winning numbers on Oct. 13, 2015, increasing the next jackpot to $84 million. louis vuitton outlet online “It shows you that he truly does care about you,” Wagner said of Bielema. z cheap ray ban sunglasses
    The Seedlings for Schools program provides tree seedlings to classrooms for students to plant them as part of projects to improve wildlife habitat coach outlet online 3, U.
    Eric Green scored 13 points for the Crusaders. michael kors outlet store Inside the door was a large indoor swimming pool, the full length of the brownstone, where a group of young men in swimsuits were playing water polo! I thought they were models, too, until I read the show’s printed program and its thanks to the Columbia University Men’s Water Polo team.
    I didn’t test these functions for this review, but have done so in the past and they worked well. coach outlet store online Officer Brailsford, reportedly feeling threatened, then fired five shots, striking Shaver throughout his body and killing him.
    When more native trees were allowed to grow along the banks of the rivers, the banks were reinforced and the channels of the rivers deepened. cheap michael kors bags “It’s an exhilarating report.
    o Jesper Fast and Keith Yandle also scored for the Rangers against Braden Holtby, who made 20 saves. louis vuitton outlet Andrew & Williamson Fresh Produce of San Diego, California initiated a voluntary recall of all cucumbers sold under the Limited Edition label during the period from Aug.
    Rio Salado Parkway. coach outlet Stop ‘lawyering’, ‘it was all legal’ changes nothing, we were screwed and you do not need an urban dictionary to define that. u michael kors outlet
    “I think it’s no secret. coach outlet online Away from the TV, Internet, smart phone and video games, we’re free to connect and share an experience with whatever friends or relatives we’ve asked along.
    c The Red Wings couldn’t convert on a pair of power plays in the third period before Smith scored. louis vuitton outlet online “It makes them a lot different. j
    Pittsburgh Steelers backup wide receiver Darrius Heyward-Bey re-signed with the team on a three-year deal, according to reports cheap air jordans Katie, in addition to recording commitments, has a number of interesting engagements coming up . louis vuitton handbags
    Deven Marrero: The former first-round pick already is 25 and has yet to prove himself offensively. He batted .226 with one homer, three RBIs and eight runs in a limited sample size with Boston (56 plate appearances, 25 games). A natural shortstop, he’s a tremendous defender who can play any infield position. cheap ray bans in political science from the University of Illinois. j http://www.coachhandbagsdeal.us.com
    Watch whether Clinton is able to shift her focus from Sanders to the general election and GOP front-runner Donald Trump michael kors outlet Scott Dixon, who has won three straight races to move into second in the points race, will start third.
    John Mosley, the executive vice president of business development for Spectrum Health in Grand Rapids http://www.louisvuittonhandbagsbuy.co.uk III35 Table 41: European Recent Past, Current and Future Analysis for Sports Utility Vehicles SUVs Market by Geographic Region France, Germany, Italy, UK, Spain, Russia, and Rest of Europe Markets Independently Analyzed with Annual Sales Figures in Thousand Units for Years 2014 through 2020 includes corresponding Graph/Chart III35 k coach factory outlet
    About Rideau Recognition SolutionsRideau helps employers inspire greatness in their people through the power of recognition and rewards. louis vuitton handbags “It was a (personal best) on a tough hill course.

    [回复]

  5. 2016年4月7日01:16 | #6

    Mentor Graphics Corp. shocked investors Thursday by sharply cuttings its sales forecast for the last part of the year, sending the stock plunging to its lowest point since the spring of 2013. cheap oakleys One day after being named Sun Belt Conference Player of the Year for the third time, Gamble scored 26 points, pulled down 10 rebounds and had 9 assists in leading a Red Wolves’ offense that shot 48. r coach outlet
    KJ Weinstock, co-owner of Stocks on 2nd and Stocks Catering: coach factory outlet Kesler won the faceoff and dropped the puck right back to Vatanen, giving him 11z assists this season.
    The operation was deemed a success, and Mr. Moo is doing well, said Kristen Flory, spokeswoman for the College of Veterinary Medicine. michael kors outlet online (Respondents could list more than one type of drink. h http://www.michaelkorshandbagsoutletup.us.com
    Officers and detectives in certain units would return to the divisions and work closely with patrol squads to solve cases and also work crime prevention measures. coach outlet (Now? Should we tellhim that Core CPI printed at 2.
    m Busy Betty toy washing machinephoto courtesy of the collector michael kors outlet So he was devastated when the work was met largely with indifference. michael kors outlet online
    Those flood insurance policies shaped where houses and businesses were placed, how zoning rules were written, what industries succeeded, what failed coach outlet Other recent commercial transactions include:DNJ Holdings LLC bought a 74,300-square-foot industrial building on 8. http://www.michaelkorshandbagsoutletbuy.us.com
    Christopher M. Ardia and Jenna K. Ardia to Serghei Sleptov and Olena Sleptov, 32 Lincoln Road, $245,000. coach outlet FS Northside^14^582^41. o coach handbags
    The winner of the first will be drawn from all membership registrations received prior to April 16. michael kors outlet You’ve got to start building momentum at some point and December is when you really start doing that.
    The pass is good on the highest ticketprice, so if you bring two parents and two kids, the adult rate isthe free rate, and you pay only the cheaper kids’ admission. nfl jerseys Petersburg, Fla.
    I found that situation curious when they appeared to be well-attended and were such an important function according to Mr. coach outlet store online It bugs me WAYmore if I give in to something I shouldn’t have.
    Gavilan will also look to Live Oak grads Courtney Borja and Madison Hartman, younger sister of the William Penn University-bound Savanna, as well as Valerie Rodgers from Sacramento to shake things up in their inaugural seasons. cheap nfl jerseys One of his outs was a deep fly ball to rightcenter that likely would have been a home run if the wind wasn’t as strong.
    l at Anne Knudsen Park, Koloa. michael kors outlet Probably it will not be,” said Humphreys, former chief economist for the mining companies Rio Tinto and Norilsk Nickel.
    ” Stairs unfolded in the back and people poured out. http://www.cheapchinajerseysnfl.us.org But the Tar Heels have a pretty storied softball program as well, finishing 37-16 last year under legendary coach Donna Papa, who ranks seventh all time among active Division I coaches in career wins. g http://www.coachfactorysoutlet.com
    “We lost thousands, maybe tens of thousands of dollars in sales,” said Green michael kors bags Michaels, who as a child wasdiagnosed with Type 1 diabetes, claimed the winner’s prize for theAmerican Diabetes Association, and Peete learned that hercharitable group would receive a matching amount.
    b MLive photographer Cory Morse got a bird-eye view of the colors around Grand Traverse, Leelanau and Benzie counties during a flight with the U.S. Coast Guard, which conducted a with the Royal Canadian Air Force on Thursday, Oct. 15 over northern Michigan. cheap michael kors bags The campaigns will then shift their focus to the March 1 Super Tuesday and socalled SEC primaries, a group of Southern state primaries that includes Arkansas. i
    Melt butter with cocoa over low heat in saucepan. coach outlet online But he hasn’t had a top 10 since May. michael kors outlet
    “According to the UAW Constitution the UAW International Executive Board will review the skilled trade issues,” the union said in a statement. “The results of this process cannot change aspects of the agreement which are common to all members .” louis vuitton handbags Here are my top 10 skills, and ways parents can help without getting in the way. l http://www.michaelkorshandbags.us.org
    Interested candidates must submit an application online at?. coach online store He scored six points in the third quarter to help the Cavaliers start their rally against the 0-3 Sixers.
    It’s not clear whether Jones’first violation took place before or after the Tigers obtained him in the July trade. coach factory outlet But he said he thinks there is support for the measures, especially Tucker’s “dark money” legislation, because of the Supreme Court races. a oakley glasses
    Add in Dalton’s career trend of fading in the second half — his career first-half passer rating is 94. coach outlet online Hewitt is Australia’s most successful Davis Cup player, having won 58 of the 78 singles and doubles matches he’s played since his 1999 debut.

    [回复]

评论分页
1 2 3 4 40770
  1. 2010年3月10日07:37 | #1
  2. 2010年3月25日05:38 | #2
  3. 2010年7月15日05:38 | #3
  4. 2010年11月1日10:00 | #4
  5. 2010年12月12日16:20 | #5
  6. 2011年1月24日20:32 | #6
  7. 2011年7月30日15:09 | #7
  8. 2012年6月20日02:01 | #8
  9. 2014年5月24日04:37 | #9
:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!: