doomemacs/modules/module-demo.el

31 lines
996 B
EmacsLisp
Raw Normal View History

2016-01-29 07:05:00 -05:00
;;; module-demo.el --- for collaboration and demonstrations
;; This library offers:
;; + impatient-mode: for broadcasting my emacs session
2016-02-04 18:52:50 -05:00
;; + big-mode: for enlarged text while screencasting
;; + integration with reveal.js for presentations
;; Big-mode settings
2016-02-22 12:35:34 -05:00
(defconst big-mode-font (font-spec :family "Hack" :size 16))
(defconst big-mode-line-spacing 0)
2016-02-26 00:03:19 -05:00
(defconst big-mode-modeline-height 26)
2016-02-04 18:52:50 -05:00
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2016-01-29 07:05:00 -05:00
(use-package impatient-mode
:defer t
:commands httpd-start)
2016-02-26 00:03:19 -05:00
(defvar big-mode--line-spacing line-spacing)
(defvar big-mode--powerline-height powerline-height)
2016-01-29 07:05:00 -05:00
(define-minor-mode big-mode
:init-value nil
:lighter " BIG"
:global t
2016-02-26 00:03:19 -05:00
(setq-default powerline-height (if big-mode big-mode-modeline-height big-mode--powerline-height))
2016-02-22 12:35:34 -05:00
(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)))
2016-01-29 07:05:00 -05:00
(provide 'module-demo)
;;; module-demo.el ends here