Sometimes we want to browse online document for the usages of Perl subroutines or modules. It is boringly repetitive to open the browser and key in the keywords. Is there any way to automate the process? With some tricks, you can open online documents by hotkeys.
You may check this original Emacs script to utilize p3rl.org. p3rl.org is a web service providing shortened url for online Perl documents and Perl module documents. By using the service, you may access Perl online documents and Perl module documents with the same url. Here we provide this tip to directly access Perl documents from Emacs.
Check that whether thing-at-point is available in your Emacs before start the hack. thing-at-point is a built-in part of Emacs, so it should already be available. One way to check its existence is using
M-x find-library RET thingatpt within Emacs. If not, install it.
Add all the following contents in ~/.emacs. First, register a new key word bounds at point.
Next, set the command to browse the url from Emacs.
Then, we can browse online Perl documents for subroutine and modules at the location of these keywords with
C-c C-f, saving many repetitive keystrokes.