From f5ef4e1756a9855de30f4d8d702b201a7672edd1 Mon Sep 17 00:00:00 2001 From: John Mastro Date: Sat, 20 Jul 2013 12:44:06 -0700 Subject: Some more commands Add a couple expansion buffer commands (for copying to the kill ring and saving the expansion) and sps-compile-buffer-to-file which does pretty much as the name says. --- readme.org | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'readme.org') diff --git a/readme.org b/readme.org index f4eca2e..03d7fb8 100644 --- a/readme.org +++ b/readme.org @@ -73,8 +73,13 @@ don't send it to the browser for evaluation: - =sps-expand-buffer= - =sps-expand-dwim= -From within an expansion buffer you can press "x" to send the JavaScript to the -browser. +From within an expansion buffer you can press =e= to send the JavaScript to the +browser, =w= to copy it to the kill ring, =s= to save it to a file (you'll be +prompted for the destination) or =q= to dismiss the buffer. The copy command, +=w=, acts on the region if it's active or the entire buffer otherwise. + +Additionally, you can use =M-x sps-compile-buffer-to-file= to expand the +current buffer and save the generated code directly to a file. *** Code evaluation commands -- cgit v1.2.3