doomemacs/modules/lang/org/packages.el

109 lines
5 KiB
EmacsLisp
Raw Normal View History

2017-12-08 22:59:42 -05:00
;; -*- no-byte-compile: t; -*-
;;; lang/org/packages.el
;; 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)))
;; 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"))
(insert "(fset 'org-release (lambda () \"9.4\"))\n"
"(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.
(package! org-mode
:recipe (:host github
:repo "emacs-straight/org-mode"
:files ("*.el" "lisp/*.el" "contrib/lisp/*.el"))
:pin "82b496c0e99531219c61b612d703cf973ef8c202")
;; ...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
(package! avy)
(package! htmlize :pin "86f22f211e9230857197c42a9823d3f05381deed")
(package! org-superstar :pin "17481852c1bd09afea877635a3185261fc19fd64")
2020-01-14 22:32:11 -05:00
(package! org-yt
:recipe (:host github :repo "TobiasZawada/org-yt")
:pin "40cc1ac76d741055cbefa13860d9f070a7ade001")
(package! ox-clip :pin "f5eac28734ea33d0b7a3dbe10b777907a91cf9f9")
(package! toc-org :pin "5deaec41ed0e5c51715737d7f74c5ae1b3c00387")
(package! org-cliplink :pin "82402cae7e118d67de7328417fd018a18f95fac2")
2019-11-10 20:50:01 -05: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")
:pin "2e9c4a295ee6aea7c97c5b1f3892b1c6e28a32d9"))
(when (featurep! :tools pdf)
(package! org-pdftools :pin "8cc15bb8014ed1f047eecc0abd8bf447f86c0505"))
(when (featurep! :tools magit)
(package! orgit :pin "ac9b1a42863a864fde9d225890ef5464bffdc646"))
2019-12-20 02:44:20 -05:00
(when (featurep! +brain)
(package! org-brain :pin "671db0e08b91c7d2637d765a7afca8b2561275c8"))
2019-11-10 20:50:01 -05:00
(when (featurep! +dragndrop)
(package! org-download :pin "768716b6fcc814b06360b99ad70bce44c0eb4a32"))
2019-11-10 20:50:01 -05:00
(when (featurep! +gnuplot)
(package! gnuplot :pin "f0001c30010b2899e36d7d89046322467e923088")
(package! gnuplot-mode :pin "601f6392986f0cba332c87678d31ae0d0a496ce7"))
2019-12-20 00:47:04 -05:00
(when (featurep! +ipython) ; DEPRECATED
(package! ob-ipython :pin "7147455230841744fb5b95dcbe03320313a77124"))
(when (featurep! +jupyter)
(package! jupyter :pin "785edbbff65abb0c929dc2fbd8b8305c77fd529e"))
(when (featurep! +journal)
(package! org-journal :pin "a6378dc484ed8df7d2d2f05ac70bd9196aa6f4c0"))
(when (featurep! +noter)
(package! org-noter :pin "9ead81d42dd4dd5074782d239b2efddf9b8b7b3d"))
2019-11-10 20:50:01 -05:00
(when (featurep! +pomodoro)
(package! org-pomodoro :pin "aa07c11318f91219336197e62c47bc7a3d090479"))
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")
:pin "f50859941ab5c7cbeaee410f2d38716252b552ac")
(package! org-tree-slide :pin "7126a4365072a32898f169ead8fb59265dabc605")
(package! org-re-reveal :pin "f9f65f32a47928cf63ed3fd5130de0dd870cf821"))
(when (featurep! +roam)
(package! org-roam :pin "4d992ce9e37d9edfe42270342ead3423ac97fa3c")
(when (featurep! :completion company)
(package! company-org-roam :pin "5d7ccd944519ae1d03f5e17ddfe33dcd8a0cc71e")))
;;; Babel
(package! ob-async :pin "80a30b96a007d419ece12c976a81804ede340311")
(when (featurep! :lang crystal)
(package! ob-crystal :pin "d84c1adee4b269cdba06a97caedb8071561a09af"))
(when (featurep! :lang go)
(package! ob-go :pin "2067ed55f4c1d33a43cb3f6948609d240a8915f5"))
2020-03-10 01:46:59 -04:00
(when (featurep! :lang hy)
(package! ob-hy :pin "a42ecaf440adc03e279afe43ee5ef6093ddd542a"))
(when (featurep! :lang nim)
(package! ob-nim :pin "bf1642cb93f0a898804dc13fd9408d2964403bd2"))
(when (featurep! :lang racket)
2020-01-14 22:32:11 -05:00
(package! ob-racket
:recipe (:host github :repo "DEADB17/ob-racket")
:pin "d8fd51bddb019b0eb68755255f88fc800cfe03cb"))
(when (featurep! :lang rest)
(package! ob-restclient :pin "f7449b2068498fe9d8ab9589e0a638148861533f"))
2019-12-19 13:19:53 -05:00
(when (featurep! :lang scala)
(package! ob-ammonite :pin "39937dff395e70aff76a4224fa49cf2ec6c57cca"))
2019-11-10 20:50:01 -05:00
;;; Export
(when (featurep! +pandoc)
(package! ox-pandoc :pin "aa37dc7e94213d4ebedb85c384c1ba35007da18e"))
(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)
:pin "77050d256fc2cb58483284bc56617e25596e445b"))
(when (featurep! :lang rst)
(package! ox-rst :pin "9158bfd18096c559e0a225ae62ab683f1c98a547"))