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-08-19 15:25:47 -04:00
|
|
|
:pin "220f2b0d93a6927eb673978c0042a1d4673e86aa")
|
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)
|
2020-08-19 15:25:47 -04:00
|
|
|
(package! htmlize :pin "49205105898ba8993b5253beec55d8bddd820a70")
|
2020-01-14 22:32:11 -05:00
|
|
|
(package! org-yt
|
|
|
|
:recipe (:host github :repo "TobiasZawada/org-yt")
|
2020-04-30 02:02:21 -04:00
|
|
|
:pin "40cc1ac76d741055cbefa13860d9f070a7ade001")
|
2020-07-12 22:19:58 -04:00
|
|
|
(package! ox-clip :pin "f5eac28734ea33d0b7a3dbe10b777907a91cf9f9")
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! toc-org :pin "5deaec41ed0e5c51715737d7f74c5ae1b3c00387")
|
|
|
|
(package! org-cliplink :pin "82402cae7e118d67de7328417fd018a18f95fac2")
|
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-05-25 17:15:32 -04:00
|
|
|
:pin "2e9c4a295ee6aea7c97c5b1f3892b1c6e28a32d9"))
|
2018-10-10 22:00:30 +02:00
|
|
|
(when (featurep! :tools pdf)
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! org-pdftools :pin "8cc15bb8014ed1f047eecc0abd8bf447f86c0505"))
|
2019-07-28 16:29:53 +03:00
|
|
|
(when (featurep! :tools magit)
|
2020-07-19 00:36:37 -04:00
|
|
|
(package! orgit :pin "ac9b1a42863a864fde9d225890ef5464bffdc646"))
|
2019-12-20 02:44:20 -05:00
|
|
|
(when (featurep! +brain)
|
2020-07-12 22:19:58 -04:00
|
|
|
(package! org-brain :pin "671db0e08b91c7d2637d765a7afca8b2561275c8"))
|
2019-11-10 20:50:01 -05:00
|
|
|
(when (featurep! +dragndrop)
|
2020-08-19 15:25:47 -04:00
|
|
|
(package! org-download :pin "67b3c744f94cf0bf50f7052ce428e95af5a6ff3f"))
|
2019-11-10 20:50:01 -05:00
|
|
|
(when (featurep! +gnuplot)
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! gnuplot :pin "f0001c30010b2899e36d7d89046322467e923088")
|
|
|
|
(package! gnuplot-mode :pin "601f6392986f0cba332c87678d31ae0d0a496ce7"))
|
2019-12-20 00:47:04 -05:00
|
|
|
(when (featurep! +ipython) ; DEPRECATED
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! ob-ipython :pin "7147455230841744fb5b95dcbe03320313a77124"))
|
2019-12-16 19:23:08 -05:00
|
|
|
(when (featurep! +jupyter)
|
2020-08-19 15:25:47 -04:00
|
|
|
(package! jupyter :pin "360cae2c70ab28c7a7848c0c56473d984f0243e5"))
|
2020-03-29 19:15:58 -04:00
|
|
|
(when (featurep! +journal)
|
2020-08-19 15:25:47 -04:00
|
|
|
(package! org-journal :pin "a2728e25b854af21cea8e8d313714c993eb1c848"))
|
2020-04-25 16:10:02 -04:00
|
|
|
(when (featurep! +noter)
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! org-noter :pin "9ead81d42dd4dd5074782d239b2efddf9b8b7b3d"))
|
2019-11-10 20:50:01 -05:00
|
|
|
(when (featurep! +pomodoro)
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! org-pomodoro :pin "aa07c11318f91219336197e62c47bc7a3d090479"))
|
2020-08-05 18:30:17 -04:00
|
|
|
(when (featurep! +pretty)
|
2020-08-19 15:25:47 -04:00
|
|
|
(package! org-superstar :pin "94f35c20f8b84a63defa145e3e6ae735fa33dd5d")
|
2020-08-05 18:30:17 -04:00
|
|
|
(package! org-fancy-priorities :pin "819bb993b71e7253cefef7047306ab4e0f9d0a86"))
|
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-04-30 02:02:21 -04:00
|
|
|
:pin "f50859941ab5c7cbeaee410f2d38716252b552ac")
|
2020-06-13 16:13:40 -04:00
|
|
|
(package! org-tree-slide :pin "7126a4365072a32898f169ead8fb59265dabc605")
|
2020-08-19 15:25:47 -04:00
|
|
|
(package! org-re-reveal :pin "7fe39d5d03ccc75d2811445d25cbbb473b53de76"))
|
2020-03-29 18:48:23 -04:00
|
|
|
(when (featurep! +roam)
|
2020-08-19 15:25:47 -04:00
|
|
|
(package! org-roam :pin "c33867e6bc282ff0a69d4ef4a020db82604039bb")
|
2020-03-29 18:48:23 -04:00
|
|
|
(when (featurep! :completion company)
|
2020-08-19 15:25:47 -04:00
|
|
|
(package! company-org-roam :pin "1132663bd68022aa7ea005ff53c7c7571890769d")))
|
2018-10-10 22:00:30 +02:00
|
|
|
|
2019-06-28 16:53:26 +02:00
|
|
|
;;; Babel
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! ob-async :pin "80a30b96a007d419ece12c976a81804ede340311")
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang crystal)
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! ob-crystal :pin "d84c1adee4b269cdba06a97caedb8071561a09af"))
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang go)
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! ob-go :pin "2067ed55f4c1d33a43cb3f6948609d240a8915f5"))
|
2020-03-10 01:46:59 -04:00
|
|
|
(when (featurep! :lang hy)
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! ob-hy :pin "a42ecaf440adc03e279afe43ee5ef6093ddd542a"))
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang nim)
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! ob-nim :pin "bf1642cb93f0a898804dc13fd9408d2964403bd2"))
|
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-04-30 02:02:21 -04:00
|
|
|
:pin "d8fd51bddb019b0eb68755255f88fc800cfe03cb"))
|
2019-06-28 16:53:26 +02:00
|
|
|
(when (featurep! :lang rest)
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! ob-restclient :pin "f7449b2068498fe9d8ab9589e0a638148861533f"))
|
2019-12-19 13:19:53 -05:00
|
|
|
(when (featurep! :lang scala)
|
2020-04-30 02:02:21 -04:00
|
|
|
(package! ob-ammonite :pin "39937dff395e70aff76a4224fa49cf2ec6c57cca"))
|
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-04-30 02:02:21 -04:00
|
|
|
(package! ox-pandoc :pin "aa37dc7e94213d4ebedb85c384c1ba35007da18e"))
|
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-07-31 01:23:00 -04:00
|
|
|
:pin "75b849e9561c4a6022babf6eaf0e037310ded7c1"))
|
2019-11-08 12:54:10 +09:00
|
|
|
(when (featurep! :lang rst)
|
2020-08-19 15:25:47 -04:00
|
|
|
(package! ox-rst :pin "99fa790da55b57a3f2e9aa187493ba434a64250e"))
|