aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-05-05 06:57:57 +0800
committerJesús <heckyel@hyperbola.info>2022-05-05 06:57:57 +0800
commit8d182df96e63f8a1f0b093e2a5bbeb0d3bc60062 (patch)
tree42785b608834d806cf4369197e8698c8fb493650
parent242f5ec76594b45c7b0350fb58aebb0ee214bd17 (diff)
downloademacs-personal-8d182df96e63f8a1f0b093e2a5bbeb0d3bc60062.tar.lz
emacs-personal-8d182df96e63f8a1f0b093e2a5bbeb0d3bc60062.tar.xz
emacs-personal-8d182df96e63f8a1f0b093e2a5bbeb0d3bc60062.zip
add reveal.js
-rw-r--r--.env.example3
-rw-r--r--init.el3
-rw-r--r--modules/init-ox-reveal.el14
3 files changed, 19 insertions, 1 deletions
diff --git a/.env.example b/.env.example
index a7bd050..66a977e 100644
--- a/.env.example
+++ b/.env.example
@@ -5,3 +5,6 @@ EMACS_EMAIL="user@example.org"
# Angular configuration
ANGULAR_SERVER_DIR="/usr/local/lib/node_modules/@angular/language-server"
NODEJS_MODULE_DIR="/usr/local/lib/node_modules"
+
+REVEAL_JS_FILE="/path/to/reveal.js"
+REVEAL_CSS_FILE="/path/to/highlight/night-owl.css"
diff --git a/init.el b/init.el
index d7e97b9..5860d4d 100644
--- a/init.el
+++ b/init.el
@@ -121,7 +121,8 @@
(require 'init-dokuwiki)
(require 'init-linter)
(require 'init-load-env-vars)
- (require 'init-restclient))
+ (require 'init-restclient)
+ (require 'init-ox-reveal))
;;; Custom variables
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
diff --git a/modules/init-ox-reveal.el b/modules/init-ox-reveal.el
new file mode 100644
index 0000000..94b7d56
--- /dev/null
+++ b/modules/init-ox-reveal.el
@@ -0,0 +1,14 @@
+;;; init-ox-reveal.el --- .Emacs Configuration -*- lexical-binding: t -*-
+;;; Commentary:
+;;
+
+;;; Code:
+;; ox-reveal
+(use-package ox-reveal
+ :ensure ox-reveal
+ :config
+ (setq org-reveal-root (getenv (concat "file://" "REVEAL_JS_FILE")))
+ (setq org-reveal-highlight-css (getenv "REVEAL_CSS_FILE"))
+ (setq org-reveal-ignore-speaker-notes t))
+(provide 'init-ox-reveal)
+;;; init-ox-reveal.el ends here