The motivation for this change was to rethink lang/org's flags. Many of its former flags represented non-features. Therefore, its flags have been reduced to five: +dragndrop, +ipython, +pandoc, +gnuplot and +present. Everything else is included as org-load-hooks and treated as reasonable defaults. Other changes: - Fixes #1502: don't autopair certain pairs when in a math region - Fixes #1483: broken localleader in org-agenda - Adds gnuplot support #1108 - Doom's org submodules have been moved into lang/org/contrib/, because I expect there will be *many* more to come, and I don't want to pollute the moudle's root.
54 lines
1.6 KiB
EmacsLisp
54 lines
1.6 KiB
EmacsLisp
;; -*- 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-site-load-path))
|
|
(setq load-path (delete (substring (file-name-directory orglib) 0 -1)
|
|
load-path)))
|
|
(package! org-plus-contrib) ; install cutting-edge version of org-mode
|
|
(package! org :ignore t) ; ignore org on ELPA, if possible
|
|
|
|
(package! org-bullets :recipe (:fetcher github :repo "Kaligule/org-bullets"))
|
|
(package! toc-org)
|
|
(when (featurep! :editor evil)
|
|
(package! evil-org))
|
|
(when (featurep! :tools pdf)
|
|
(package! org-pdfview))
|
|
(package! htmlize)
|
|
(package! ox-clip)
|
|
(package! org-yt :recipe (:fetcher github :repo "TobiasZawada/org-yt"))
|
|
|
|
;;; 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 (:fetcher github :repo "DEADB17/ob-racket")))
|
|
(when (featurep! :lang rest)
|
|
(package! ob-restclient))
|
|
(when (featurep! :lang rust)
|
|
(package! ob-rust))
|
|
|
|
;;; Modules
|
|
(when (featurep! +dragndrop)
|
|
(package! org-download))
|
|
|
|
(when (featurep! +gnuplot)
|
|
(package! gnuplot)
|
|
(package! gnuplot-mode))
|
|
|
|
(when (featurep! +ipython)
|
|
(package! ob-ipython))
|
|
|
|
(when (featurep! +pandoc)
|
|
(package! ox-pandoc))
|
|
|
|
(when (featurep! +present)
|
|
(package! centered-window :recipe (:fetcher github :repo "anler/centered-window-mode"))
|
|
(package! org-tree-slide)
|
|
(package! ox-reveal))
|