From 7c2b19eb13dfc48505b7a135bcb193be28559da8 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Sat, 4 Jan 2014 17:05:12 +0000 Subject: [PATCH] configured org-protocol. Signed-off-by: Andreas Gerler --- init.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/init.el b/init.el index 41fb4de4..e6c7acf8 100644 --- 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 '( -- 2.47.3