Other GNU Emacs tips

GNU Emacs's Muse is a powerfull tool allowing you to publish you web from within Emacs, and edit it inside.

Many times you want to edit the web, then publish it locally to your PC, to inspect whether everything is OK, and only once you are satisfied to publish the changes to the web.

To enable you to select operatively between whether to publish to the web or locally, use the following piece of code in your .emacs

(defun shiroikuma/muse-publish-locally ()
  (interactive)
  (setq muse-project-alist
	`(("Web project name" (,@(muse-project-alist-dirs
                                  "~/local/web/project/muse/source")
                                  :default "index")
	   ,@(muse-project-alist-styles
              "~/local/web/project/muse/source"
              "~/local/web/project/html/destination" "html")))))
(defun shiroikuma/muse-publish-hcoop ()
  (interactive)
  (setq muse-project-alist
	`(("Web project name" (,@(muse-project-alist-dirs
                                  "~/local/web/project/muse/source")
                                  :default "index")
	   ,@(muse-project-alist-styles
              "~/local/web/project/muse/source"
              "/afs/hcoop.net/user/u/us/user/public_html" "html")))))
This is using hcoop's AFS file access, if using SFTP etc, substitute for the /afs/hcoop... above.

Now when you wish to publish locally:

M-x shiroikuma/muse-publish-locally

To publish the website to the web:


.