Add elnode handler to get current conkeror URL

By running this in elnode, one can then point their browser to the
chosen port and server and they'll get 302-redirected to whichever URL
conkeror is showing at that moment.
This commit is contained in:
Tom Willemse 2015-01-20 14:29:50 +01:00
parent 9e31f7989a
commit b6fefcb3a5

View file

@ -654,6 +654,13 @@ For `python-mode' I prefer `python-imenu-create-flat-index'."
(hide-entry))
(call-interactively func))))))
(defun oni:current-conkeror-tab (httpcon)
"Demonstration function"
(elnode-http-start
httpcon 302 `("Content-Type" . "text/html")
(cons "Location" (shell-command-to-string "conkeror-eval")))
(elnode-http-return httpcon))
(let (setp)
(defun oni:set-theme (frame)
"Try to set the theme for the current (first) frame."