add config-dir variable and change load-path to use it
This commit is contained in:
@@ -236,7 +236,8 @@ Example defines
|
||||
;; be loaded before, otherwise both versions will be loaded and will
|
||||
;; conflict.
|
||||
(use-package org
|
||||
:load-path ("lisp/org/lisp" "lisp/org/contrib/lisp")
|
||||
:load-path (lambda () (list (concat config-dir "lisp/org/lisp")
|
||||
(concat config-dir "lisp/org/contrib/lisp")))
|
||||
:delight (org-mode "🅞") ;; "Org "
|
||||
:defer t
|
||||
:init
|
||||
@@ -425,7 +426,7 @@ Example defines
|
||||
|
||||
(use-package org-cliplink
|
||||
:after (org)
|
||||
:load-path "lisp/org-cliplink"
|
||||
:load-path (lambda() (concat config-dir "lisp/org-cliplink"))
|
||||
:config
|
||||
(defun my-org-link-description-update ()
|
||||
"."
|
||||
@@ -1134,10 +1135,10 @@ used as a communication channel."
|
||||
:defer t ;; will be loaded via `org-export-backends' see above inside `org'
|
||||
:config
|
||||
;; #+REVEAL_EXTRA_CSS:
|
||||
(setq org-reveal-extra-css (concat "file://" (expand-file-name user-emacs-directory) "scripts/flipcard/flipcard.css")) ;; multiple files seperated with \n
|
||||
(setq org-reveal-extra-css (concat "file://" (expand-file-name config-dir) "scripts/flipcard/flipcard.css")) ;; multiple files seperated with \n
|
||||
;; #+REVEAL_POSTAMBLE:
|
||||
(setq org-reveal-postamble (replace-regexp-in-string "\n" "" (concat "<script>" (org-reveal--read-file (concat (expand-file-name user-emacs-directory) "scripts/flipcard/flipcard.js")) "\n</script>"))) ;; only one line!
|
||||
(setq org-reveal-root (concat "file://" (expand-file-name user-emacs-directory) "scripts/reveal.js"))
|
||||
(setq org-reveal-postamble (replace-regexp-in-string "\n" "" (concat "<script>" (org-reveal--read-file (concat (expand-file-name config-dir) "scripts/flipcard/flipcard.js")) "\n</script>"))) ;; only one line!
|
||||
(setq org-reveal-root (concat "file://" (expand-file-name config-dir) "scripts/reveal.js"))
|
||||
(setq org-reveal-single-file t)
|
||||
;; overwrite to implement `org-reveal-single-file' (:reveal-single-file)
|
||||
;; used in `org-reveal-scripts' as reveal-4-plugin
|
||||
|
||||
Reference in New Issue
Block a user