|
@@ -1,25 +1,25 @@
|
|
|
#+TITLE: org-protocol.el -- Intercept calls from emacsclient to trigger custom actions
|
|
|
-#+OPTIONS: H:3 num:nil toc:t \n:nil @:t ::t |:t -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc ^:{} author:nil
|
|
|
+#+OPTIONS: H:3 num:nil toc:t \n:nil ::t |:t ^:{} -:t f:t *:t tex:t d:(HIDE) tags:not-in-toc author:nil
|
|
|
#+STARTUP: odd
|
|
|
#+SETUPFILE: ../macros.setupfile
|
|
|
-#+STYLE: <script type="text/javascript">
|
|
|
-#+STYLE: <!--/*--><![CDATA[/*><!--*/
|
|
|
-#+STYLE: function makeUrl() {
|
|
|
-#+STYLE: return encodeURIComponent(location.href)+
|
|
|
-#+STYLE: '/'+encodeURIComponent(document.title)+
|
|
|
-#+STYLE: '/'+encodeURIComponent(window.getSelection());
|
|
|
-#+STYLE: }
|
|
|
-#+STYLE: function storeLink() {
|
|
|
-#+STYLE: document.location.href='org-protocol://store-link://'+makeUrl();
|
|
|
-#+STYLE: }
|
|
|
-#+STYLE: function remember() {
|
|
|
-#+STYLE: document.location.href='org-protocol://remember://'+makeUrl();
|
|
|
-#+STYLE: }
|
|
|
-#+STYLE: function capture() {
|
|
|
-#+STYLE: document.location.href='org-protocol://capture://'+makeUrl();
|
|
|
-#+STYLE: }
|
|
|
-#+STYLE: /*]]>*///-->
|
|
|
-#+STYLE: </script>
|
|
|
+#+HTML_HEAD: <script type="text/javascript">
|
|
|
+#+HTML_HEAD: <!--/*--><![CDATA[/*><!--*/
|
|
|
+#+HTML_HEAD: function makeUrl() {
|
|
|
+#+HTML_HEAD: return encodeURIComponent(location.href)+
|
|
|
+#+HTML_HEAD: '/'+encodeURIComponent(document.title)+
|
|
|
+#+HTML_HEAD: '/'+encodeURIComponent(window.getSelection());
|
|
|
+#+HTML_HEAD: }
|
|
|
+#+HTML_HEAD: function storeLink() {
|
|
|
+#+HTML_HEAD: document.location.href='org-protocol://store-link://'+makeUrl();
|
|
|
+#+HTML_HEAD: }
|
|
|
+#+HTML_HEAD: function remember() {
|
|
|
+#+HTML_HEAD: document.location.href='org-protocol://remember://'+makeUrl();
|
|
|
+#+HTML_HEAD: }
|
|
|
+#+HTML_HEAD: function capture() {
|
|
|
+#+HTML_HEAD: document.location.href='org-protocol://capture://'+makeUrl();
|
|
|
+#+HTML_HEAD: }
|
|
|
+#+HTML_HEAD: /*]]>*///-->
|
|
|
+#+HTML_HEAD: </script>
|
|
|
|
|
|
[[file:index.org][{Back to Worg's contibutions index}]]
|
|
|
|