ffs

Form feed-separated plain text presentations with Emacs

git clone https://www.shemshak.org/~amin/ffs


diff --git a/ffs.el b/ffs.el
index b5a4892..0d597d6 100644
--- a/ffs.el
+++ b/ffs.el
@@ -97,6 +97,9 @@ ffs-page-delimiter
 (defvar ffs-edit-buffer-name "*ffs-edit*"
   "The name of the ffs-edit buffer used when editing a slide.")
 
+(defvar ffs-find-speaker-notes-function #'find-file-other-frame
+  "The function to use when finding a speaker's note file.")
+
 (defvar-local ffs--edit-source-buffer nil
   "The ffs presentation buffer of the slide being edited.")
 
@@ -371,8 +374,7 @@ ffs-find-speaker-notes-file
   (interactive "Fspeakers notes buffer: ")
   (let ((b (current-buffer)))
     (save-excursion
-      ;; XXX defvar ffs-find-notes-function
-      (find-file-other-frame file)
+      (funcall ffs-find-speaker-notes-function file)
       (ffs-minor-mode 1)
       (setq-local
        ffs--slides-buffer b