Document directory
- Introduction to Emacs
- Why use Emacs wiki to write a blog?
- How to use Emacs wiki to write a blog
- CSS to beautify your blog
Original article http://blog.donews.com/chords/archive/2005/12/28/674000.aspxuse Emacs wiki to help you write a blog
Introduction to Emacs
I believe that anyone who knows GNU should know VI. emacs is a more powerful tool than vi. Its full name is very complex, to learn about Emacs, you can refer to the http://learn.tsinghua.edu.cn: 8080/2001315450/emacs.html and Emacs culture guide. Here we use the migrated version of Emacs in windows. Specifically, we use Emacs wiki to write a blog. Emacs configurations are complex and diverse. Different configurations can help you solve a lot of problems conveniently. Their configuration files are in the Emacs folder. emacs files must be configured in an ancient computer language such as lisp. Because I am not talented, my configuration is to find foria (Emacs "cool", recently researching lisp) to help me get 1, very small, convenient and easy to understand. Some people have released the Wiki configuration template on the Internet. You can refer to it (although it seems that I cannot use it for any strange reason ). If you only care about using Emacs to write some blogs, it is enough for others to help you configure them. If you want to experience other rich and powerful Emacs functions, I suggest you solve the lisp language, because it is essential.
Why use Emacs wiki to write a blog?
Do you have to spend a lot of time on online formatting every time you write a blog? Or is the content of your blog brilliant, but the appearance looks messy? We want to write, rather than spending a lot of time on typographical and programming. This is exactly what Emacs can do for you! With the HTML page automatically generated by Emacs Wiki and the CSS effect you want, you can use only a small number of Emacs markup to make your blog orderly and in a complete format, simple and beautiful, and even elegant.
How to use Emacs wiki to write a blog
The tutorial has been written by someone on the Internet. The address is here. Thank you very much! After writing it, press c-P to publish it, and c-h to preview it. The published HTML is in your webwiki folder. If you want to define a pattern during the preview period, you can place the CSS file named style.css In the CSS folder under webwiki. (Of course, you can change the path in the configuration file)
CSS to beautify your blog
Emacs wiki automatically generates different HTML tags based on different markups. You only need to write the CSS file to change the style of the blog. Below is a common wiki markup tag corresponding to the HTML table generated:
Wiki tag |
HTML Tag |
File Name |
H1 |
Level 1 title |
H2 |
* Level 2 Title |
H3 |
Emphasize |
Em |
More emphasis |
Strong |
Most emphasized |
Strong & em |
Example |
Pre. Example |
Table item |
Li |
Item |
DL |
Definition |
DT |
You can write a CSS style 2 file to define your blog style. In the future, you only need to use Emacs wiki to easily write a blog, all style and typographical issues should be handed over to Emacs wiki! All you have to do is paste the HTML into your donews or other blog that supports source file editing. 3
[1] The Emacs configuration is really frustrating. Recently, I certainly have no time to learn lisp. Here is an episode of Bt. I used the school-configured Emacs to bring it back to my home. It runs normally, that is, wrong typed argument occurs during c-h previewing, I was confused. Later I consulted foria and found that shell was actually shellexcute failed, and then foria went away ...... I didn't want to go back to the toilet. Both c-h and shell are ready !~ Depressed. It may be that you need to set the browser used to open the HTML file during the preview. Except for this, I cannot think of anything else.
[2] It should be noted that since CSS on donews has defined common HTML tags such as H1, H2, and H3, if you modify it without authorization, it may affect the style of your entire blog. If you don't want to change your blog, you just need to add the tags unique to the Emacs wiki, I added these:
STRONG{FONT-WEIGHT: bold}LI{COLOR: orangered}PRE{BORDER-RIGHT: #777777 1px solid;PADDING-RIGHT: 0.5em;BORDER-TOP: #777777 1px solid;PADDING-LEFT: 0.5em;PADDING-BOTTOM: 0.5em;MARGIN-LEFT: 1em;BORDER-LEFT: #777777 1px solid;COLOR: black;MARGIN-RIGHT: 2em;PADDING-TOP: 0.5em;BORDER-BOTTOM: #777777 1px solid;WHITE-SPACE: pre;BACKGROUND-COLOR: #e6e6e6}
[3] since it is meaningless to publish the header and footer on the Internet, you can leave the header and footer blank during configuration, specifically, delete the configuration of the original header and footer, and add:
(setq emacs-wiki-publishing-footer <lisp>(my-blog-heaer)</lisp>")