~heckyel/emacs-personal

8d182df96e63f8a1f0b093e2a5bbeb0d3bc60062 — Jesús 1 year, 9 months ago 242f5ec
add reveal.js
3 files changed, 19 insertions(+), 1 deletions(-)

M .env.example
M init.el
A modules/init-ox-reveal.el
M .env.example => .env.example +3 -0
@@ 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"

M init.el => init.el +2 -1
@@ 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))

A modules/init-ox-reveal.el => modules/init-ox-reveal.el +14 -0
@@ 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