Commits

Milan Stanojević committed 48baa8e

add Jane.Cr.dedicated-review-frame variable and functions to set and clear it

Comments (0)

Files changed (1)

elisp/jane/jane-cr.el

   (forward-word)
   (forward-char 2))
 
+(defvar Jane.Cr.dedicated-review-frame
+  nil
+  "frame where 'cr review -emacs' should open files")
+
+(defun Jane.Cr.set-dedicated-review-frame ()
+  "use current frame to open files when running 'cr review -emacs'"
+  (interactive)
+  (setq Jane.Cr.dedicated-review-frame (selected-frame)))
+
+(defun Jane.Cr.clear-dedicated-review-frame ()
+  "clear the frame selection for 'cr review -emacs'"
+  (interactive)
+  (setq Jane.Cr.dedicated-review-frame nil))
+
 (provide 'jane-cr)
-