2017-12-08 22:59:42 -05:00
|
|
|
;; -*- no-byte-compile: t; -*-
|
|
|
|
;;; lang/org/packages.el
|
|
|
|
|
2019-08-08 10:10:11 -04:00
|
|
|
;; Prevent built-in Org from playing into the byte-compilation of
|
|
|
|
;; `org-plus-contrib'.
|
|
|
|
(when-let (orglib (locate-library "org" nil doom--initial-load-path))
|
|
|
|
(setq load-path (delete (substring (file-name-directory orglib) 0 -1)
|
|
|
|
load-path)))
|
2019-11-19 20:25:54 -05:00
|
|
|
|
|
|
|
;; HACK A necessary hack because org requires a compilation step after being
|
|
|
|
;; cloned, and during that compilation a org-version.el is generated with
|
|
|
|
;; these two functions, which return the output of a 'git describe ...'
|
|
|
|
;; call in the repo's root. Of course, this command won't work in a sparse
|
|
|
|
;; clone, and more than that, initiating these compilation step is a
|
|
|
|
;; hassle, so...
|
|
|
|
(add-hook! 'straight-use-package-pre-build-functions
|
|
|
|
(defun +org-fix-package-h (package &rest _)
|
|
|
|
(when (member package '("org" "org-plus-contrib"))
|
|
|
|
(with-temp-file (expand-file-name "org-version.el" (straight--repos-dir "org"))
|
|
|
|
(insert "(fset 'org-release (lambda () \"9.3\"))\n"
|
|
|
|
"(fset 'org-git-version #'ignore)\n"
|
|
|
|
"(provide 'org-version)\n")))))
|
|
|
|
|
2019-12-31 19:11:16 -05:00
|
|
|
;; install cutting-edge version of org-mode
|
|
|
|
(package! org-plus-contrib)
|
|
|
|
;; ...And prevent other packages from pulling org; org-plus-contrib satisfies
|
|
|
|
;; the dependency already: https://github.com/raxod502/straight.el/issues/352
|
|
|
|
(package! org :recipe (:local-repo nil))
|
2019-10-25 20:29:00 -04:00
|
|
|
|
2019-12-06 17:00:01 -05:00
|
|
|
(package! avy)
|
2019-10-25 20:29:00 -04:00
|
|
|
(package! htmlize)
|
2019-07-21 15:39:45 +02:00
|
|
|
(package! org-bullets :recipe (:host github :repo "Kaligule/org-bullets"))
|
2019-10-25 20:00:06 -04:00
|
|
|
(package! org-fancy-priorities)
|
2019-10-25 20:29:00 -04:00
|
|
|
(package! org-yt :recipe (:host github :repo "TobiasZawada/org-yt"))
|
|
|
|
(package! ox-clip)
|
2017-12-08 22:59:42 -05:00
|
|
|
(package! toc-org)
|
2019-11-21 22:58:12 +01:00
|
|
|
(package! org-cliplink)
|
2020-01-02 01:30:50 -05:00
|
|
|
(package! org-bookmark-heading)
|
2019-11-10 20:50:01 -05:00
|
|
|
|
2019-10-23 17:40:57 -04:00
|
|
|
(when (featurep! :editor evil +everywhere)
|
2019-10-23 17:36:30 -04:00
|
|
|
(package! evil-org :recipe (:host github :repo "hlissner/evil-org-mode")))
|
2018-10-10 22:00:30 +02:00
|
|
|
(when (featurep! :tools pdf)
|
|
|
|
(package! org-pdfview))
|
2019-07-28 16:29:53 +03:00
|
|
|
(when (featurep! :tools magit)
|
|
|
|
(package! orgit))
|
2019-12-20 02:44:20 -05:00
|
|
|
(when (featurep! +brain)
|
|
|
|
(package! org-brain))
|
2019-11-10 20:50:01 -05:00
|
|
|
(when (featurep! +dragndrop)
|
|
|
|
(package! org-download))
|
|
|
|
(when (featurep! +gnuplot)
|
|
|
|
(package! gnuplot)
|
|
|
|
(package! gnuplot-mode))
|
2019-12-20 00:47:04 -05:00
|
|
|
(when (featurep! +ipython) ; DEPRECATED
|
2019-11-10 20:50:01 -05:00
|
|
|
(package! ob-ipython))
|
2019-12-16 19:23:08 -05:00
|
|
|
(when (featurep! +jupyter)
|
|
|
|
(package! jupyter))
|
2019-11-10 20:50:01 -05:00
|
|
|
(when (featurep! +pomodoro)
|
|
|
|
(package! org-pomodoro))
|
|
|
|
(when (featurep! +present)
|
|
|
|
(package! centered-window
|
|
|
|
:recipe (:host github :repo "anler/centered-window-mode"))
|
|
|
|
(package! org-tree-slide)
|
|
|
|
(package! org-re-reveal))
|
|
|
|
(when (featurep! +journal)
|
|
|
|
(package! org-journal))
|
2018-10-10 22:00:30 +02:00
|
|
|
|
2019-06-28 16:53:26 +02:00
|
|
|
;;; Babel
|
|
|
|
(package! ob-async)
|
|
|
|
(when (featurep! :lang crystal)
|
|
|
|
(package! ob-crystal))
|
|
|
|
(when (featurep! :lang go)
|
|
|
|
(package! ob-go))
|
|
|
|
(when (featurep! :lang nim)
|
|
|
|
(package! ob-nim))
|
|
|
|
(when (featurep! :lang racket)
|
2019-07-21 15:39:45 +02:00
|
|
|
(package! ob-racket :recipe (:host github :repo "DEADB17/ob-racket")))
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang rest)
|
|
|
|
(package! ob-restclient))
|
|
|
|
(when (featurep! :lang rust)
|
|
|
|
(package! ob-rust))
|
2019-12-19 13:19:53 -05:00
|
|
|
(when (featurep! :lang scala)
|
|
|
|
(package! ob-ammonite))
|
2019-06-28 16:53:26 +02:00
|
|
|
|
2019-11-10 20:50:01 -05:00
|
|
|
;;; Export
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! +pandoc)
|
|
|
|
(package! ox-pandoc))
|
2019-08-29 14:56:31 +02:00
|
|
|
(when (featurep! +hugo)
|
2019-10-25 20:29:00 -04:00
|
|
|
(package! ox-hugo
|
|
|
|
:recipe (:host github :repo "kaushalmodi/ox-hugo" :nonrecursive t)))
|
2019-11-08 12:54:10 +09:00
|
|
|
(when (featurep! :lang rst)
|
|
|
|
(package! ox-rst))
|