From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-15?Q?Jan_B=F6cker?= Subject: [ANN] org-docview.el - Link to PDF files from org-mode Date: Wed, 12 Aug 2009 20:25:10 +0200 (CEST) Message-ID: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-585670751-1250101128=:9803" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbIWP-0001J3-Cl for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 14:26:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbIWK-0001Ho-8k for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 14:26:00 -0400 Received: from [199.232.76.173] (port=57550 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbIWK-0001Hl-12 for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 14:25:56 -0400 Received: from mail7.worldserver.net ([217.13.200.27]:48018) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MbIWJ-0007Tv-Fg for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 14:25:55 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-585670751-1250101128=:9803 Content-Type: TEXT/PLAIN; format=flowed; charset=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE Hello, the new doc-view-mode in emacs 23 can be used to view DVI, PDF and=20 PostScript files. I have written a custom link type for org-mode to allow= =20 linking to those files from org-mode. This is the first thing besides .emacs customization that I have written=20 in elisp; as such, any feedback would be much appreciated. I have only tested it with PDF files so far, but it should work with=20 anything doc-view-mode can display. The attached file adds support for org-store-link inside doc-view-mode=20 buffers. The link syntax is: =09docview:/path/to/file.pdf: where is the page number to visit. To use it, copy it to your load path as org-docview.el and add =09(require 'org-docview) to your .emacs file. I'd also like to suggest to integrate this functionality into the=20 standard org-mode distribution, as emacs 23 includes doc-view-mode by defau= lt. I am releasing the code under the terms of the GNU General Public License,= =20 Version 3 or later. Jan B=F6cker --8323328-585670751-1250101128=:9803 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=org-docview.el Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=org-docview.el Ozs7IG9yZy1kb2N2aWV3LmVsIC0tLSBzdXBwb3J0IGZvciBsaW5rcyB0byBk b2Mtdmlldy1tb2RlIGJ1ZmZlcnMNCg0KKHJlcXVpcmUgJ29yZykNCg0KKG9y Zy1hZGQtbGluay10eXBlICJkb2N2aWV3IiAnb3JnLWRvY3ZpZXctb3BlbikN CihhZGQtaG9vayAnb3JnLXN0b3JlLWxpbmstZnVuY3Rpb25zICdvcmctZG9j dmlldy1zdG9yZS1saW5rKQ0KDQooZGVmdW4gb3JnLWRvY3ZpZXctb3BlbiAo bGluaykNCiAgKHdoZW4gKHN0cmluZy1tYXRjaCAiXFwoLipcXCk6XFwoWzAt OV0rXFwpJCIgIGxpbmspDQogICAgKGxldCogKChwYXRoIChtYXRjaC1zdHJp bmcgMSBsaW5rKSkNCgkgICAocGFnZSAoc3RyaW5nLXRvLW51bWJlciAobWF0 Y2gtc3RyaW5nIDIgbGluaykpKSkNCiAgICAgIChvcmctb3Blbi1maWxlIHBh dGggMSkgOzsgbGV0IG9yZy1tb2RlIG9wZW4gdGhlIGZpbGUgKGluLWVtYWNz ID0gMSkNCiAgICAgIDs7IHNvIHRoYXQgb3JnLWxpbmstZnJhbWUtc2V0dXAg aXMgcmVzcGVjdGVkDQogICAgICAoZG9jLXZpZXctZ290by1wYWdlIHBhZ2Up DQogICAgICApKSkNCg0KKGRlZnVuIG9yZy1kb2N2aWV3LXN0b3JlLWxpbmsg KCkNCiAgIlN0b3JlIGEgbGluayB0byBhIGRvY3ZpZXcgYnVmZmVyIg0KICAo d2hlbiAoZXEgbWFqb3ItbW9kZSAnZG9jLXZpZXctbW9kZSkNCiAgICA7OyBU aGlzIGJ1ZmZlciBpcyBpbiBkb2Mtdmlldy1tb2RlDQogICAgKGxldCogKChw YXRoIGJ1ZmZlci1maWxlLW5hbWUpDQoJICAgKHBhZ2UgKGRvYy12aWV3LWN1 cnJlbnQtcGFnZSkpDQoJICAgKGxpbmsgKGNvbmNhdCAiZG9jdmlldzoiIHBh dGggIjoiIChudW1iZXItdG8tc3RyaW5nIHBhZ2UpKSkNCgkgICAoZGVzY3Jp cHRpb24gIiIpKQ0KICAgICAgKG9yZy1zdG9yZS1saW5rLXByb3BzDQogICAg ICAgOnR5cGUgImRvY3ZpZXciDQogICAgICAgOmxpbmsgbGluaykpKSkNCg0K KHByb3ZpZGUgJ29yZy1kb2N2aWV3KQ0K --8323328-585670751-1250101128=:9803 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --8323328-585670751-1250101128=:9803--