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:
parent
9e31f7989a
commit
b6fefcb3a5
1 changed files with 7 additions and 0 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue