]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
configured org-protocol.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sat, 4 Jan 2014 17:05:12 +0000 (17:05 +0000)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sat, 4 Jan 2014 17:05:12 +0000 (17:05 +0000)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
init.el

diff --git a/init.el b/init.el
index 41fb4de45782982f515f9994ec9c1cf21b28a3a9..e6c7acf88a00c0553eb32e933f6e4d3b3c7d4ff9 100644 (file)
--- a/init.el
+++ b/init.el
@@ -13,6 +13,8 @@ load-path))
 ;; http://www.emacswiki.org/emacs/EmacsNiftyTricks
 
 
+(setq tex-dvi-view-command "(f=*; pdflatex \"${f%.dvi}.tex\" && open \"${f%.dvi}.pdf\")")
+
 (require 'centered-cursor-mode)
 
 ;; load template support
@@ -31,6 +33,16 @@ load-path))
 (add-to-list 'load-path "~/.xemacs/xemacs-packages/lisp/org-8.2.3c")
 (require 'org)
 
+;; run these commands to make org-protocol work in gnome:
+;; gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/command '/usr/bin/emacsclient %s' --type String
+;; gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean true
+;;
+;; this is how your firefox bookmark must look like:
+;; javascript:location.href='org-protocol://capture:/l/'%20+%20encodeURIComponent(location.href)+'/'%20+%20encodeURIComponent(document.title)+%20'/'%20+%20encodeURIComponent(window.getSelection()%20)
+
+(server-start)
+(require 'org-protocol)
+
 ;; (require 'org-install)
 (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
 (define-key global-map "\C-cl" 'org-store-link)
@@ -78,6 +90,10 @@ load-path))
 %i\n
 %a")
 
+("l" "Links (it)" entry (file+headline "~/org/it.org" "Links")
+"** %c\n\n  %u\n  %i"
+         :empty-lines 1)
+
 ))
 
 (setq org-link-abbrev-alist '(