diff options
author | 2022-05-19 21:57:45 -0400 | |
---|---|---|
committer | 2022-05-19 22:20:05 -0400 | |
commit | 22758e8c9214f2086fe0c0a424c993f0a52a5780 (patch) | |
tree | 012bbbc57be8e60406e08ef3445bd1ad2bc8d8f0 /.emacs.d/init.el | |
parent | 2176627ce01dff84926fb2b997779a223efe50e8 (diff) | |
download | configs-22758e8c9214f2086fe0c0a424c993f0a52a5780.tar.gz configs-22758e8c9214f2086fe0c0a424c993f0a52a5780.tar.xz configs-22758e8c9214f2086fe0c0a424c993f0a52a5780.zip |
Add ffs (form feed slides) mode for GNU Emacs
This is what I used for preparing and presenting my LibrePlanet 2022
talk, 'The Net beyond the web' back in March. :)
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r-- | .emacs.d/init.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index ce05ab4..11e4fb2 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -954,6 +954,21 @@ Effectively a very simple light/dark theme toggle switch." (with-eval-after-load 'emms (setq emms-directory (b/var "emms"))) +(add-to-list 'load-path (b/lisp "ffs")) +(run-with-idle-timer 0.5 nil #'require 'ffs) +(with-eval-after-load 'ffs + (global-set-key (kbd "C-c f s") #'ffs)) + +(defun b/export-frame () + (interactive) + ;; TODO: ask for fn and/or take as arg + (let* ((fn (make-temp-file "emacs" nil ".pdf")) + (data (x-export-frames nil 'pdf))) + (with-temp-file fn + (insert data)) + (kill-new fn) + (message fn))) + ;;; Post initialization |