From 440f2cffaa6842ef18686d7d447653ba4ccc1bfc Mon Sep 17 00:00:00 2001 From: Lorenzo Giuliani Date: Mon, 30 Sep 2019 16:16:59 +0200 Subject: [PATCH] move map! to the :init section of the package definition --- modules/lang/org/contrib/+hugo.el | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/lang/org/contrib/+hugo.el b/modules/lang/org/contrib/+hugo.el index 6697b83b0..5f10b844e 100644 --- a/modules/lang/org/contrib/+hugo.el +++ b/modules/lang/org/contrib/+hugo.el @@ -2,17 +2,17 @@ ;;;###if (featurep! +hugo) (use-package! ox-hugo - :after ox) - -(map! :map org-mode-map - :localleader - (:prefix "e" - (:prefix ("H" . "hugo") - :desc "Subtree or File to Md to file" "H" #'org-hugo-export-wim-to-md - :desc "File to Md file" "h" #'org-hugo-export-to-md - :desc "Subtree or File to Md to file & open" "O" '(λ! (org-open-file (org-hugo-export-wim-to-md))) - :desc "File to Md file & open" "o" '(λ! (org-open-file (org-hugo-export-to-md))) - :desc "All subtrees (or File) to Md file(s)" "A" '(λ! (org-hugo-export-wim-to-md :all-subtrees)) - :desc "File to a temporary Md buffer" "t" #'org-hugo-export-as-md))) + :after ox + :init + (map! :map org-mode-map + :localleader + (:prefix "e" + (:prefix ("H" . "hugo") + :desc "Subtree or File to Md to file" "H" #'org-hugo-export-wim-to-md + :desc "File to Md file" "h" #'org-hugo-export-to-md + :desc "Subtree or File to Md to file & open" "O" '(λ! (org-open-file (org-hugo-export-wim-to-md))) + :desc "File to Md file & open" "o" '(λ! (org-open-file (org-hugo-export-to-md))) + :desc "All subtrees (or File) to Md file(s)" "A" '(λ! (org-hugo-export-wim-to-md :all-subtrees)) + :desc "File to a temporary Md buffer" "t" #'org-hugo-export-as-md)))) ;;; +hugo.el ends here