summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-org.el
diff options
context:
space:
mode:
Diffstat (limited to 'custom/jao-custom-org.el')
-rw-r--r--custom/jao-custom-org.el27
1 files changed, 17 insertions, 10 deletions
diff --git a/custom/jao-custom-org.el b/custom/jao-custom-org.el
index 4d2e622..f4e84a8 100644
--- a/custom/jao-custom-org.el
+++ b/custom/jao-custom-org.el
@@ -1,7 +1,7 @@
;; -*- lexical-binding: t -*-
;;; General configuration
-(defvar jao-org-dir (expand-file-name "~/doc/org"))
+(defvar jao-org-dir (expand-file-name "org" jao-doc-dir))
(use-package org
:ensure t
@@ -30,6 +30,9 @@
org-modules '(bibtex info eww eshell git-link)
org-odd-levels-only t
org-outline-path-complete-in-steps nil
+ org-persist-directory (jao-d-l
+ "~/Tmp/org-persist"
+ "/tmp/org-persist")
org-refile-allow-creating-parent-nodes 'confirm
org-refile-targets '((nil :maxlevel . 5)
(org-agenda-files :maxlevel . 5))
@@ -99,7 +102,7 @@
"* TODO %?\n %i%a" :prepend t)
("r" "REPLY" entry
(file+headline "inbox.org" "Todo")
- "* REPLY %:subject%?\n %t\n %i%a" :prepend t)
+ "* REPLY %a\n %t\n %?" :prepend t)
("a" "Appointment" entry
(file+olp "inbox.org" "Appointments")
"* %^T %?\n %a" :time-prompt t)
@@ -140,10 +143,9 @@
(use-package org-fragtog
:after org
:ensure t
+ :demand t
:hook ((org-mode . org-fragtog-mode)))
-(require 'org-fragtog)
-
(setq org-format-latex-options
`(:foreground default
:background
@@ -160,6 +162,9 @@
(require 'ox-latex)
+;;; Export (org)
+(require 'ox-org)
+
;;; Export (minted and pandoc)
(setq org-latex-listings 'minted
org-latex-packages-alist '(("" "minted"))
@@ -167,10 +172,6 @@
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
-;; (use-package ox-pandoc
-;; :after org
-;; :ensure t)
-
;;; Babel and literate programming
(setq org-src-window-setup 'other-window) ;; current-window
(require 'org-tempo nil t) ;; <s TAB for 9.2 and later
@@ -275,7 +276,12 @@
(define-key doc-view-mode-map (kbd "C-c o") #'jao-org-pdf-goto-org)
(define-key doc-view-mode-map (kbd "C-c O") #'jao-org-pdf-goto-org*))
-;; eldoc
+;;;; mac links
+(jao-when-darwin
+ (use-package org-mac-link
+ :ensure t))
+
+;;; eldoc
(defun jao-org-eldoc--hook ()
(set (make-local-variable 'eldoc-documentation-function)
'jao-org-link-at-point)
@@ -306,7 +312,8 @@
(jao-transient-major-mode+ org
["Links"
- ("le" "insert current eww link" jao-insert-eww-link)
+ ("le" "insert current eww link" jao-insert-eww-link :if jao-is-linux)
+ ("lm" "insert mac link" org-mac-link-get-link :if jao-is-darwin)
("lf" "insert link from clipboard" org-cliplink)
("lc" "copy link at point" jao-org-copy-link-at-point)])