gnu.emacs.help
[Top] [All Lists]

Re: save buffer contents without moving mark/point?

Subject: Re: save buffer contents without moving mark/point?
From: "james"
Date: 26 Feb 2007 11:43:56 -0800
Newsgroups: gnu.emacs.help
On Feb 26, 1:14 pm, Thomas L Roche <tlro...@xxxxxxxxxx> wrote:
> I'm looking for a {function, key binding} with semantics like windows
> C-a, i.e. that will select the current contents of the buffer
> (preferably respecting narrowing) and save it to the kill ring without
> killing (like copy-region-as-kill).

(defun my-select-all ()
  (interactive)
  (copy-region-as-kill (point-min) (point-max)))


_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@xxxxxxx
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

<Prev in Thread] Current Thread [Next in Thread>