]> git.donarmstrong.com Git - lib.git/blobdiff - emacs_el/configuration/org-mode-configuration.el
build org files
[lib.git] / emacs_el / configuration / org-mode-configuration.el
index 4e0a5366b6edc5833be0bc70dc7901963c631d68..05d30514a88d336c7180da73157f3232dfd35c20 100644 (file)
          "* %?\n%U\n" :clock-in t :clock-resume t)
         ("w" "org-protocol" entry (file "~/projects/notes/refile.org")
          "* TODO Review %c\n%U\n" :immediate-finish t)
-        ("m" "Meeting" entry (file "~/projects/notes/refile.org")
+        ("M" "Meeting" entry (file "~/projects/notes/refile.org")
          "* MEETING with %? :MEETING:\n%U" :clock-in t :clock-resume t)
         ("p" "Phone call" entry (file "~/projects/notes/refile.org")
          "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t)
@@ -363,7 +363,7 @@ Maildir, or by Message-ID."
           '((?b . "[[bib:%l][%l-bib]]")
             (?n . "[[notes:%l][%l-notes]]")
             (?c . "\\cite{%l}")
-            (?h . "*** %t\n:PROPERTIES:\n:Custom_ID: %l\n:END:\n[[papers:%l][%l paper]]")))
+            (?h . "*** %t\n:PROPERTIES:\n:Custom_ID: %l\n:END:\n[[papers:%l][%l xoj]] [[papers-pdf:%l][pdf]]")))
          ))
   (define-key org-mode-map (kbd "C-c )") 'reftex-citation)
   (define-key org-mode-map (kbd "C-c [") 'reftex-citation)
@@ -383,6 +383,13 @@ Maildir, or by Message-ID."
    (format "%s %s"
        (substitute-in-file-name "$HOME/bin/bibtex_to_paper") bibtexkey)))
 (org-add-link-type "papers" 'open-research-paper)
+(defun open-research-paper-pdf (bibtexkey)
+  "Open a paper pdf by bibtex key"
+  (interactive "bibtex key: ")
+  (shell-command
+   (format "%s -p evince %s"
+       (substitute-in-file-name "$HOME/bin/bibtex_to_paper") bibtexkey)))
+(org-add-link-type "papers-pdf" 'open-research-paper-pdf)
 
 (add-to-list 'org-link-abbrev-alist
              '("notes" .