summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el15
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