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

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

Re: How to get rid of *GNU Emacs* buffer on start-up?


From: Xah
Subject: Re: How to get rid of *GNU Emacs* buffer on start-up?
Date: Wed, 24 Sep 2008 21:01:35 -0700 (PDT)
User-agent: G2/1.0

On Sep 23, 9:32 pm, r...@rosslaird.info (Ross A. Laird) wrote:
> I have been following this thread with amusement and (a little bit of)
> chagrin. Online modes of communication make it easy to say things that
> one would not say in a face-to-face conversation. But that's just an
> observation. My main point is that I am not a programmer (I am a
> professional writer) and I would like to vote for continuation of the
> scratch buffer as a basic feature. I used the scratch buffer the other
> day to show some students in a creative writing class the schedule of
> their presentations, which I had copied from my org-mode agenda (which
> has all kinds of other stuff that is not relevant to the class). I don't
> use the scratch buffer all that much, but I like to know that it's
> there. I copy snippets of text to it, and I sometimes use it to create
> odd little literary vignettes that I may not wish to save. It's useful.
>
> Just my two bits.

Here's a tip you might love.

(global-set-key (kbd "<f6>") 'new-empty-buffer)

(defun new-empty-buffer ()
  "Opens a new empty buffer."
  (interactive)
  (let ((buf (generate-new-buffer "untitled")))
    (switch-to-buffer buf)
    (funcall (and initial-major-mode))
    ))

Put the above in your “.emacs”. Then, you can get a new scratch by
simply pressing a key. And, when you need to, press again you get a
second scratch.

  Xah
∑ http://xahlee.org/

reply via email to

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