1. Yaron Minsky
  2. js-elisp

Commits

Milan Stanojević  committed 48baa8e

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

  • Participants
  • Parent commits 3f5fbaf
  • Branches default

Comments (0)

Files changed (1)

File elisp/jane/jane-cr.el

View file
   (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)
-