lang/org: refactor org init process

after! org is more reliable than org-load-hook.
This commit is contained in:
Henrik Lissner
2017-12-09 14:42:42 -05:00
parent 9d3155892a
commit cd7bd7628f
7 changed files with 52 additions and 46 deletions

View File

@@ -3,8 +3,6 @@
(defvar +org-present-text-scale 7
"The `text-scale-amount' for `org-tree-slide-mode'.")
(add-hook 'org-load-hook #'+org-present|init)
;;
;; Plugins
@@ -45,7 +43,7 @@
;; Bootstrap
;;
(defun +org-present|init ()
(after! org
(require 'ox-reveal)
(map! :map org-mode-map "<f8>" #'+org-present/start))