Emacs-wiki笔记,和它的教程
-->
Emacs-Wiki
Define Emacs-wiki
关于这个话题,网上有极其丰富的内容。 我只说2句废话,就是这个网页就是由Emacs-Wiki生成的,以及它有两个关键字,Emacs和Wiki。 如此好的一个东西,说实话,网络上关于如何让新手快速起步的资料确实少之又少。因此我希望能够写一篇让新手可以快速起步的东西,
只要你懂得一些Emacs的基础
。 我还需要让你知道,Emacs-wiki在某种程度上类似于TeX。 我们在tex文件里面写代码,再通过TeX的
编译
将它变成pdf; 我们在Emacs-wiki中,编辑Emacs-wiki文件,再通过Emacs-wiki的
发布
将它变成生成的网页文件。
安装Emacs-Wiki
对于Debian用户来说,安装
实在是一件简单不过的事情。
~$ sudo aptitude install emacs-wiki
即可。
关于Emacs-wiki的教程
这是一件有些困难的事情,因为当你搜索Google的时候,往往可以找到很多关于如何设置Emacs-Wiki的文章,但是却很少有文章能够告诉你,当你真正设置完了,如何开始真正地使用它,尤其是像我这样的一个wiki新手。
关于设置的一些注解
- 关于设置css的问题。 在.emacs文件里面添加如下的elisp代码:
(setq emacs-wiki-style-sheet "<link rel=\"stylesheet\" type=\"text/css\" href=\"blueheadings.css\" />")
需要注意的是,很多人在他们的设置指导上面只说了如此设置css,却没有说明如何添加引号中的内容,导致我一开始直接在引号里面加入了css的路径从而失败。 但是研究了 Eamcs-wiki生成的html文件以后,我发现它不过是把这引号里面的东西加入到了html头文件里面。 这下好办了,在引号内添入那句设置css的html就好了呀。 注意在LISP中,要在字符串内 输入引号要用“\”来转义。
找我喜欢的css文件也废了我很大的功夫。 好在,最终我找到了。 以后成功找到这篇文章的人就幸福了因为,你可以直接去:
- 关于设置多个Project 这个在网上也很容易搜索到。 我想说的是大家很有可能会问的问题: 为什么要设置多个Project? 为了把这个问题说明白,我要调用一个设置里面的例子来将它说明白:
(setq emacs-wiki-projects `(("Default" . ((emacs-wiki-directories . ("~/wiki/Default")) (emacs-wiki-publishing-directory . "~/wiki/publish/Default"))) ("Debian" . ((emacs-wiki-directories . ("~/wiki/draft/Debian")) (emacs-wiki-publishing-directory . "~/wiki/publish/Debian"))) ("TeX" . ((emacs-wiki-directories . ("~/wiki/draft/TeX")) (emacs-wiki-publishing-directory . "~/wiki/publish/TeX")))))
上面的设置来源于.emacs文件。 这个设置中有三个Project。 拿Debian这个Project来说,它的每一个emacs-wiki文件都存在
~/wiki/draft/Debian
这个目录下面。而每个文件发布了以后,生成的html文件会放在
~/wiki/publish/Debian
下面。 而默认地,生成文件夹中会有一个 *WikiIndex*的网页来index这个Project下面的所有html。 我想,不用我接着说,你也应该理解了Project的意义和它是如何封装的了。
关于使用的注解
首先,关于Emacs中最最常用的快捷键:
- M-x emacs-wiki-find-file RET
它会在mini-bar里面显示一个提示,让你输入Default这个project下你想编辑的entry,或者说,emacs-wiki文件名。其实我认为它最大的作用就是进入Emacs-wiki模式,只要继续轻轻回车 就可以了。 接下来的事我们用接下来的命令做。
- C-c C-v 这个命令是换project用的。 因为我们已经用前面的命令进入了Emacs-wiki模式,所以在这个命令的使用中,可以通过Tab来补全project名。
- C-c C-f 在Emacs-wiki的模式下,这个和C-x C-f是一个回事来着。 只不过,这个文件会保存在当前Project对应的emacs-wiki文件夹。
- C-c C-p publish到当前Project对应的目标文件夹里头。
关于Wiki标记语言
这个找一篇教程就好了,比如
需要注意的是,这个教程貌似是默认你知道wiki的基本概念的,比如插入一个wikiname链接(比如你在维基百科上看到一个蓝色的名字,点一下就能连接到那个页面)它就没有详细说。 其实,只要用两个中括号就好了,比如:
[[Google]]
的结果就是Google
当然,前提条件是,你需要在当前的Project下有以这个为名字的html,不然它会找不到连接而直接发邮件给maintainer,也就是你,当然,这个功能是可以取消的。
Mon, 06 Oct 2008 06:12:58 +0800
当学会使用某种 TeX 时,无论 Emacs Wiki、Emacs muse 还是 DocBook 都变的一点乐趣也没有了。
Mon, 06 Oct 2008 19:59:00 +0800
啊,我只是为了方便呵呵。 TeX也用了很久了,但是只是用来写作业,希望以后有疑问可以向您请教,谢谢^_^
Wed, 30 Sep 2009 12:04:03 +0800
Hello everyone. Hello. My nick's Kelvin.wanna see me on my page? Tell me, have I exactly. Help me! Could you help me find sites on the: Airbrush tanning salons dallas texas. I found only this - <a href="http://www.bigumcms.dk/Members/Tanning">airbrush Tanning in hotels las vegas</a>. When the downline subsidiary for the game enables, a other income is often used and flawed by a reporting firm. While in the explanation component, logistics of direct-to-consumer are a financial practice for the target of a promotional feasibility, in the call price, they are just next nor specific. THX :cool:, Kelvin from Taiwan.
Tue, 06 Oct 2009 12:56:14 +0800
Could you help me. [M]aybe the most any of us can expect of ourselves isn't perfection but progress. Help me! I find sites on the topic: Types of stock options. I found only this - <a href="http://mgovworld.org/Members/Stockopt">exercising incentive stock options</a>. Your course should participate the force: whitening and returns of your procedures, products, patient, and contain to report and receive with you. Rather, i stopped from brushing in torn requests confirmed with this specific bruxism, healthcare was well tall. With respect :confused:, Edna from Bosnia.
Sun, 12 Dec 2021 00:16:42 +0800
This is often nice blog post and even i enjoy to enjoy a book it blog post. your site is without a doubt fabulous and you just contain decent office staff ınside your web log. attractive writing continue the good work. 카지노사이트
Fri, 31 Dec 2021 03:31:35 +0800
You need to experience a tournament for just one of the most effective blogs on the web. I’ll recommend this page! 안전놀이터
Sat, 12 Feb 2022 21:05:25 +0800
Many thanks for that publish as well as excellent ideas.. actually We additionally believe that effort is actually the most crucial ingredient of obtaining achievement. 안전놀이터
Wed, 16 Feb 2022 03:09:13 +0800
That is great submit and also i love to learn this kind of submit. your website will be great and you also have got excellent employees within your website. great revealing keep writing. 토토사이트
Mon, 07 Mar 2022 00:42:15 +0800
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. North American Bancard ISO
Tue, 22 Mar 2022 04:12:44 +0800 I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. Прахосмукачки роботи
Mon, 28 Mar 2022 03:56:49 +0800
I absolutely love your blog and find many of your post’s to be just what I’m looking for. Do you offer guest writers to write content available for you? I wouldn’t mind producing a post or elaborating on a number of the subjects you write in relation to here. Again, awesome site! Mindful Mental Health of Alabama
Mon, 28 Mar 2022 19:32:42 +0800
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. wire connector
Sat, 02 Apr 2022 18:45:00 +0800
I can’t believe focusing long enough to research; much less write this kind of article. You’ve outdone yourself with this material without a doubt. It is one of the greatest contents. yuxuda oglan usagi gormek
Sat, 02 Apr 2022 20:19:51 +0800
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. tantangan sahabat
Wed, 06 Apr 2022 16:12:55 +0800
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. what is usd stablecoin
Wed, 06 Apr 2022 19:00:48 +0800
Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. euro stablecoin
Thu, 07 Apr 2022 00:49:21 +0800
Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting. best gbp stablecoin
Thu, 07 Apr 2022 04:06:25 +0800
I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks... chf stablecoin
Sat, 09 Apr 2022 17:45:40 +0800
<p>
This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. <a href="https://www.onlinecasino-korea.net/">온라인카지노</a></p>
Mon, 11 Apr 2022 22:23:27 +0800
We are really grateful for your blog post. You will see lots of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. Starting a Payment Processing Company
Wed, 13 Apr 2022 19:16:15 +0800
Great job for publishing this type of beneficial web site. Your web log isn't only useful but it's additionally really creative too. How to Become a Credit Card Processor
Fri, 22 Apr 2022 03:30:32 +0800
I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. Merchant Services Sales Training
Fri, 27 May 2022 22:57:27 +0800
I’m no longer positive the place you are getting your info, however great topic. I must spend some time learning more or working out more. Thank you for great info I was in search of this information for my mission. 먹튀검증
Sat, 04 Jun 2022 23:29:59 +0800
Just a smiling visitant here to share the love btw outstanding style . 麥克風
Tue, 14 Jun 2022 00:32:33 +0800
You need to participate in a contest for among the best blogs on the web. I’ll recommend this website! 回收手提電腦
Mon, 03 Oct 2022 20:08:08 +0800
wonderful post, very informative. I wonder why the other experts of this sector do not notice this. You must continue your writing. I’m sure, you’ve a great readers’ base already! Macbook air
Sat, 05 Nov 2022 01:53:44 +0800
Good day! I know this is kind of off topic but I was wondering which blog platform are you using for this website? I’m getting sick and tired of WordPress because I’ve had issues with hackers and I’m looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform. 카지노사이트
Sat, 19 Nov 2022 04:31:01 +0800
Can I say such a relief to discover someone that actually knows what theyre referring to over the internet. You definitely understand how to bring a concern to light and work out it crucial. More people need to see this and can see this side of the story. I cant think youre less well-known as you definitely contain the gift. 온라인카지노