Without messing with javascript you could accomplish this via:
1) Add a function to your .bashrc so you can format the quotes as
needed. Something like:
function emacs-web {
emacsclient -e '(w3m "$1")'
}
( note I haven't tested this and you'll probably want to do some error
checking of the argument(s) )
2) Copy the 'current' URL via hitting 'c' than '0'
3) Run the run 'shell-command-on-url' command
4) Paste the current URL
5) Run the emacs-web command when prompted
To get something less convoluted you'll probably have to start hacking
some javascript though. It's worth while in the long run to learn a
little as you'll be able to start hacking at conkeror itself. Easily
adding my own functionality is one of the big reasons I use it as my
main browser.
-Mark
On Tue, Feb 2, 2010 at 10:26 AM, Emanuel Heitlinger
<[email protected]> wrote:
>
> Hi List,
>
> what do I have to put in my .conkerrorrc to be able to open the current URL
> in emacs w3m?
>
> The shell command would be
> emacsclient -e '(w3m "the-current-url")'
> Afaik the quotes are needed as given above, and I am still stuck with getting
> this command right.
> I can't find how to get the current url in a string to use in the command.
>
> Help greatly appriciated (also beyond the shell command as my java-script
> knowledge is nil)!
> Opening conkeror from emacs is a faq, is it not that common the other way?
>
> Emanuel
> _______________________________________________
> Conkeror mailing list
> [email protected]
> https://www.mozdev.org/mailman/listinfo/conkeror
>
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror