FlyZhy.Org logo Projects - Website Settings

Before
HowTo
Compiling and Installing
Configuring
Publishing
Download
References

I first created my website using VIM to write HTML, and then Emacs. It's very boring and waste of my time whenever I upgraded my website (actually ugly also). Luckily I met Emacs and started to use it after a while I felt VIM is not good enough for me (although it is good enough). Then I heard Emacs Wiki, however I did not use it until now because when I wanted to give it a try I knew that Michael Olson started publishing the first release candidates of the muse mode a couple of months ago. So I gave it a try and it did not take long until I was really happy with the system. This page provides an overview about my setup and is a reference for myself (and possibly others).

Before

HowTo

The configuration structure for my websettings is:

$HOME/
  |©¤©¤ personal-site
              |©¤©¤ muse/
              |       |©¤©¤ en-header.html
              |       |©¤©¤ en-footer.html
              |©¤©¤ site/
              |       |©¤©¤ web/
              |       |       |©¤©¤ *.muse
              |       |©¤©¤ projects/
              |       |       |©¤©¤ *.muse
              |       |©¤©¤ wiki/
              |       |       |©¤©¤ *.muse
              |©¤©¤ publish/
                      |©¤©¤ static/
                      |       |©¤©¤ styles/
                      |       |        |©¤©¤ *.css
                      |       |©¤©¤ logos/
                      |       |        |©¤©¤ *.png
                      |©¤©¤ web/
                      |       |©¤©¤ *.html
                      |©¤©¤ projects/
                      |       |©¤©¤ images/
                      |       |©¤©¤ docs/
                      |       |©¤©¤ scripts/
                      |       |©¤©¤ source/
                      |       |©¤©¤ *.html
                      |©¤©¤ wiki/
                      |       |©¤©¤ scripts/
                      |       |©¤©¤ *.html
                      |©¤©¤ bookmarks/

Compiling and Installing

Preparation

Move muse-latest.tar.gz downloaded before to ~/Emacs/Source/ and uncompress:

#mv /path/to/muse-latest.tar.gz ~/Emacs/Source/
#cd !$ && tar xvfz muse-latest.tar.gz

Compilation

Running make if you use GNU Emacs or else first edit the Makefile.defs file in the top-level directory to comment

EMACS    = emacs
SITEFLAG = --no-site-file

then uncomment

#EMACS    = xemacs
#SITEFLAG = -no-site-file

to use XEmacs and at last run make.

Installation

Edit the Makefile.defs file to make the variable ELISPDIR points to where you want the source and compiled Muse files to be installed and INFODIR indicates where to put the Muse manual. For my configuration, I change them to

ELISPDIR = ~/Emacs/Extensions/EmacsMuse
INFODIR = ~/Emacs/Docs

then

#mkdir ~/Emacs/Extensions/EmacsMuse

and at last run make install.

Configuring

See this part on EmacsConfig page.

top

~/Emacs/Configurations/modes.el

code:

;;; muse-mode
;;  ~/Emacs/Extensions/EmacsMuse/
;(load-file "~/Emacs/Extensions/muse-zhy.el")
(load-file "~/Emacs/Extensions/muse-zhy-en.el")

up

~/Emacs/Extensions/muse-zhy-en.el

code:

up

Publishing

Write your muse file with .muse as its extended name and type C-c C-p to publish all the files in the current project. See MuseMode#Documentation or QuickStart for quick start with Muse Mode.

top

Download

References


1. To write your website using muse mode you also should have some basic knowledge about HTML and CSS.

2. The html files are generated by htmlize.el