mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-28 16:51:08 -05:00
lang/org: general refactor; split init into hooks
lang/org's initialization process is now split up into hooks on org-load-hook. This approach is cleaner and easier to customize. I also removed the escape binding in org-agenda-mode-map, as the popup system makes it redundant.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
;;; lang/org/+export.el -*- lexical-binding: t; -*-
|
||||
|
||||
(add-hook 'org-load-hook #'+org|init-export)
|
||||
|
||||
;; I don't have any beef with org's built-in export system, but I do wish it
|
||||
;; would export to a central directory, rather than `default-directory'. This is
|
||||
;; because all my org files are usually in one place, and I want to be able to
|
||||
@@ -16,7 +18,7 @@
|
||||
(parse-raw . t))))
|
||||
|
||||
;;
|
||||
(after! org
|
||||
(defun +org|init-export ()
|
||||
(add-transient-hook! #'org-export-dispatch (require 'ox-pandoc))
|
||||
|
||||
(setq org-export-directory (expand-file-name ".export" +org-dir)
|
||||
|
Reference in New Issue
Block a user