Skip to content

Instantly share code, notes, and snippets.

@condotti
Created April 18, 2014 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save condotti/11028770 to your computer and use it in GitHub Desktop.
Save condotti/11028770 to your computer and use it in GitHub Desktop.
Bracketsみたいなアレ
(require 'elnode)
(defun my-elnode-server (docroot port)
"Static server"
(interactive (list
(read-directory-name "Document root: " default-directory)
(read-number "Port: " 8001)))
(elnode-start (elnode-webserver-handler-maker docroot) :port port))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment