add reveal.js

This commit is contained in:
Jesús 2022-05-05 06:57:57 +08:00
parent 242f5ec765
commit 8d182df96e
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
3 changed files with 19 additions and 1 deletions

View File

@ -5,3 +5,6 @@ EMACS_EMAIL="user@example.org"
# Angular configuration # Angular configuration
ANGULAR_SERVER_DIR="/usr/local/lib/node_modules/@angular/language-server" ANGULAR_SERVER_DIR="/usr/local/lib/node_modules/@angular/language-server"
NODEJS_MODULE_DIR="/usr/local/lib/node_modules" NODEJS_MODULE_DIR="/usr/local/lib/node_modules"
REVEAL_JS_FILE="/path/to/reveal.js"
REVEAL_CSS_FILE="/path/to/highlight/night-owl.css"

View File

@ -121,7 +121,8 @@
(require 'init-dokuwiki) (require 'init-dokuwiki)
(require 'init-linter) (require 'init-linter)
(require 'init-load-env-vars) (require 'init-load-env-vars)
(require 'init-restclient)) (require 'init-restclient)
(require 'init-ox-reveal))
;;; Custom variables ;;; Custom variables
(setq custom-file (expand-file-name "custom.el" user-emacs-directory)) (setq custom-file (expand-file-name "custom.el" user-emacs-directory))

14
modules/init-ox-reveal.el Normal file
View File

@ -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