doomemacs/modules/lang/org/packages.el

92 lines
3.1 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 _)
(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")))))
;; 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
(package! avy)
2019-10-25 20:29:00 -04:00
(package! htmlize)
(package! org-bullets :recipe (:host github :repo "Kaligule/org-bullets"))
(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
(when (featurep! :editor evil +everywhere)
(package! evil-org :recipe (:host github :repo "hlissner/evil-org-mode")))
(when (featurep! :tools pdf)
(package! org-pdfview))
(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))
(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))
;;; 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)
(package! ob-racket :recipe (:host github :repo "DEADB17/ob-racket")))
(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-11-10 20:50:01 -05:00
;;; Export
(when (featurep! +pandoc)
(package! ox-pandoc))
(when (featurep! +hugo)
2019-10-25 20:29:00 -04:00
(package! ox-hugo
:recipe (:host github :repo "kaushalmodi/ox-hugo" :nonrecursive t)))
(when (featurep! :lang rst)
(package! ox-rst))