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 _)
|
2020-01-22 18:36:37 -05:00
|
|
|
(when (equal package "org-mode")
|
|
|
|
(with-temp-file (expand-file-name "org-version.el" (straight--repos-dir "org-mode"))
|
2020-01-23 04:15:26 -05:00
|
|
|
(insert "(fset 'org-release (lambda () \"9.4\"))\n"
|
2019-11-19 20:25:54 -05:00
|
|
|
"(fset 'org-git-version #'ignore)\n"
|
|
|
|
"(provide 'org-version)\n")))))
|
|
|
|
|
2020-01-22 18:36:37 -05:00
|
|
|
;; Install cutting-edge version of org-mode, and from a mirror, because
|
|
|
|
;; code.orgmode.org runs on a potato.
|
2020-01-23 04:15:26 -05:00
|
|
|
(package! org-mode
|
|
|
|
:recipe (:host github
|
|
|
|
:repo "emacs-straight/org-mode"
|
2020-01-25 03:49:42 -05:00
|
|
|
:files ("*.el" "lisp/*.el" "contrib/lisp/*.el"))
|
2020-04-01 17:31:09 -04:00
|
|
|
:pin "b9935765f7")
|
2019-12-31 19:11:16 -05:00
|
|
|
;; ...And prevent other packages from pulling org; org-plus-contrib satisfies
|
|
|
|
;; the dependency already: https://github.com/raxod502/straight.el/issues/352
|
2020-01-22 18:36:37 -05:00
|
|
|
(package! org :recipe (:local-repo nil))
|
2019-10-25 20:29:00 -04:00
|
|
|
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! avy)
|
|
|
|
(package! htmlize :pin "86f22f211e")
|
2020-04-14 17:55:06 -04:00
|
|
|
(package! org-superstar :pin "4897c333a8")
|
2020-01-14 22:32:11 -05:00
|
|
|
(package! org-yt
|
|
|
|
:recipe (:host github :repo "TobiasZawada/org-yt")
|
2020-01-25 03:49:42 -05:00
|
|
|
:pin "40cc1ac76d")
|
|
|
|
(package! ox-clip :pin "bd36f9fb4e")
|
2020-03-06 15:39:01 -05:00
|
|
|
(package! toc-org :pin "5deaec41ed")
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! org-cliplink :pin "82402cae7e")
|
2019-11-10 20:50:01 -05:00
|
|
|
|
2019-10-23 17:40:57 -04:00
|
|
|
(when (featurep! :editor evil +everywhere)
|
2020-01-14 22:32:11 -05:00
|
|
|
(package! evil-org
|
|
|
|
:recipe (:host github :repo "hlissner/evil-org-mode")
|
2020-01-25 03:49:42 -05:00
|
|
|
:pin "4d44e9bbdc"))
|
2018-10-10 22:00:30 +02:00
|
|
|
(when (featurep! :tools pdf)
|
2020-04-14 15:31:39 -04:00
|
|
|
(package! org-pdftools :pin "4f22e13e06"))
|
2019-07-28 16:29:53 +03:00
|
|
|
(when (featurep! :tools magit)
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! orgit :pin "e7cddf39e3"))
|
2019-12-20 02:44:20 -05:00
|
|
|
(when (featurep! +brain)
|
2020-04-01 17:31:09 -04:00
|
|
|
(package! org-brain :pin "ec4bd9dd29"))
|
2019-11-10 20:50:01 -05:00
|
|
|
(when (featurep! +dragndrop)
|
2020-03-27 16:57:56 -04:00
|
|
|
(package! org-download :pin "b96fd7ba02"))
|
2019-11-10 20:50:01 -05:00
|
|
|
(when (featurep! +gnuplot)
|
2020-03-27 16:57:56 -04:00
|
|
|
(package! gnuplot :pin "f0001c3001")
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! gnuplot-mode :pin "601f639298"))
|
2019-12-20 00:47:04 -05:00
|
|
|
(when (featurep! +ipython) ; DEPRECATED
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! ob-ipython :pin "7147455230"))
|
2019-12-16 19:23:08 -05:00
|
|
|
(when (featurep! +jupyter)
|
2020-04-10 01:44:37 -07:00
|
|
|
(package! jupyter :pin "587ed4e029"))
|
2020-03-29 19:15:58 -04:00
|
|
|
(when (featurep! +journal)
|
|
|
|
(package! org-journal :pin "664c08e12c"))
|
2019-11-10 20:50:01 -05:00
|
|
|
(when (featurep! +pomodoro)
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! org-pomodoro :pin "aa07c11318"))
|
2019-11-10 20:50:01 -05:00
|
|
|
(when (featurep! +present)
|
|
|
|
(package! centered-window
|
2020-01-14 22:32:11 -05:00
|
|
|
:recipe (:host github :repo "anler/centered-window-mode")
|
2020-01-25 03:49:42 -05:00
|
|
|
:pin "24f7c5be9d")
|
|
|
|
(package! org-tree-slide :pin "7bf09a02bd")
|
2020-03-29 19:15:58 -04:00
|
|
|
(package! org-re-reveal :pin "e4460a98b6"))
|
2020-03-29 18:48:23 -04:00
|
|
|
(when (featurep! +roam)
|
2020-04-10 04:23:58 +00:00
|
|
|
(package! org-roam :pin "6e97003967")
|
2020-03-29 18:48:23 -04:00
|
|
|
(when (featurep! :completion company)
|
2020-04-10 04:23:58 +00:00
|
|
|
(package! company-org-roam :pin "0913d86f16")))
|
2018-10-10 22:00:30 +02:00
|
|
|
|
2019-06-28 16:53:26 +02:00
|
|
|
;;; Babel
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! ob-async :pin "80a30b96a0")
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang crystal)
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! ob-crystal :pin "d84c1adee4"))
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang go)
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! ob-go :pin "2067ed55f4"))
|
2020-03-10 01:46:59 -04:00
|
|
|
(when (featurep! :lang hy)
|
|
|
|
(package! ob-hy :pin "a42ecaf440"))
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang nim)
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! ob-nim :pin "bf1642cb93"))
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang racket)
|
2020-01-14 22:32:11 -05:00
|
|
|
(package! ob-racket
|
|
|
|
:recipe (:host github :repo "DEADB17/ob-racket")
|
2020-01-25 03:49:42 -05:00
|
|
|
:pin "d8fd51bddb"))
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang rest)
|
2020-03-27 16:57:56 -04:00
|
|
|
(package! ob-restclient :pin "f7449b2068"))
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang rust)
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! ob-rust :pin "6a82587598"))
|
2019-12-19 13:19:53 -05:00
|
|
|
(when (featurep! :lang scala)
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! ob-ammonite :pin "39937dff39"))
|
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)
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! ox-pandoc :pin "aa37dc7e94"))
|
2019-08-29 14:56:31 +02:00
|
|
|
(when (featurep! +hugo)
|
2019-10-25 20:29:00 -04:00
|
|
|
(package! ox-hugo
|
2020-01-14 22:32:11 -05:00
|
|
|
:recipe (:host github :repo "kaushalmodi/ox-hugo" :nonrecursive t)
|
2020-03-06 15:39:01 -05:00
|
|
|
:pin "1c1e3ec467"))
|
2019-11-08 12:54:10 +09:00
|
|
|
(when (featurep! :lang rst)
|
2020-01-25 03:49:42 -05:00
|
|
|
(package! ox-rst :pin "9158bfd180"))
|