Re: Newbie question: Aquamacs autoscroll in second, frame or buffer
2009-03-01 21:57:24 GMT
Hi Christian,
On 27 Feb 2009, at 12:04, Christian Liesen wrote:
> I began working with Aquamacs only last week and hope that someone can
> point me to a solution for auto-scrolling other frames or buffers. I'm
> lost.
>
> What I do is this:
>
> -- open Aquamacs
> -- open a file with R syntax in a first frame
> -- open a "New Buffer in New Frame", start R in that second frame
>
> Everything works fine except that the second frame with R does not
> autoscroll. In order to see the results of the commands I'm sending
> from the syntax frame, I always have to switch to the R frame, scroll
> down to see the output, then go back again to the syntax frame. This
> is getting pretty tiresome over time.
I use the following code to see the results of a data
object in the *R* buffer when a transcript buffer is
active:
(setq comint-scroll-to-bottom-on-input t)
(setq comint-scroll-to-bottom-on-output t)
(setq comint-move-point-for-output t)
For a better workflow you can try the following code.
It finds out whether you want to evaluate a marked
region or a line and binds it to just one shortcut.
(defun my-ess-eval ()
(interactive)
;;(my-ess-start-R)
(if (and transient-mark-mode mark-active)
(call-interactively 'ess-eval-region)
(call-interactively 'ess-eval-line-and-step)))
(add-hook 'ess-mode-hook
'(lambda()
(local-set-key [(shift return)] 'my-ess-eval)))
Hope that helps,
Stefan Strohmeier
Universität Bayreuth
_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
_____________________________________________________________ MacOSX-Emacs mailing list MacOSX-Emacs <at> email.esm.psu.edu http://email.esm.psu.edu/mailman/listinfo/macosx-emacs List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
RSS Feed