diff options
author | 2015-01-20 14:29:50 +0100 | |
---|---|---|
committer | 2015-01-20 14:30:11 +0100 | |
commit | b6fefcb3a51562d2d2857ef3a296539ad32a9fcb (patch) | |
tree | 8f3ee7b32da30a2c9c696e2e6e988a894bc6624e /emacs/.emacs.d/init.el | |
parent | 9e31f7989af9e50a3b27162bbe66225b730a3381 (diff) | |
download | dotfiles-b6fefcb3a51562d2d2857ef3a296539ad32a9fcb.tar.gz dotfiles-b6fefcb3a51562d2d2857ef3a296539ad32a9fcb.zip |
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.
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r-- | emacs/.emacs.d/init.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index fb61db1..27a4162 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -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." |