gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: renewable scratch pad


From: Joe Corneli
Subject: Re: renewable scratch pad
Date: Sun, 20 Jun 2004 17:01:08 -0500

This would make the function behave more like M-x shell: the scratch
buffer would always have lisp interaction mode enforced.  A more
advanced version might allow the user to change the mode in the
scratch buffer, and have that mode preserved when accessing the
buffer using this function. Not sure about how best to do that, so
this is where I'll leave it for now.

(defun scratch ()
  "Access or create a lisp-interaction scratchpad in the `*scratch*' buffer."
  (interactive)
  (let ((buffer (get-buffer-create "*scratch*")))
    (pop-to-buffer buffer)
    (lisp-interaction-mode)
  buffer))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]