doomemacs/modules/extra-demo.el
2016-04-26 02:04:33 -04:00

31 lines
1 KiB
EmacsLisp

;;; extra-demo.el --- for collaboration and demonstrations
(defvar powerline-height)
;; This library offers:
;; + impatient-mode: for broadcasting my emacs session
;; + big-mode: for enlarged text while screencasting
;; + TODO integration with reveal.js for presentations
;; + TODO peer programming collab
;; Big-mode settings
(defconst big-mode-font (font-spec :family "Hack" :size 16))
(defconst big-mode-line-spacing 0)
(defconst big-mode-modeline-height 30)
;;
(use-package impatient-mode
:commands (httpd-start impatient-mode))
(defvar big-mode--line-spacing line-spacing)
(defvar big-mode--powerline-height powerline-height)
(define-minor-mode big-mode
:init-value nil
:lighter " BIG"
:global t
(setq-default powerline-height (if big-mode big-mode-modeline-height big-mode--powerline-height))
(narf/load-font (if big-mode big-mode-font narf-default-font))
(setq-default line-spacing (if big-mode big-mode-line-spacing big-mode--line-spacing)))
(provide 'extra-demo)
;;; extra-demo.el ends here