emacs-devel
[Top][All Lists]
Advanced

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

Re: C-x home/end to select buffer before/after point?


From: Davis Herring
Subject: Re: C-x home/end to select buffer before/after point?
Date: Mon, 24 Sep 2007 10:42:47 -0700 (PDT)
User-agent: SquirrelMail/1.4.8-6.el3.2lanl

> (defun mark-buffer-before-point (reversep)
>   "Select the part of the buffer before point.
> With a prefix argument, select the part after point."
>   (interactive "P")
>   (mark-buffer-after-point t))

M-< C-x C-x

> (defun mark-buffer-after-point (reversep)
>   "Select the part of the buffer after point.
> With a prefix argument, select the part before point."
>   (interactive "P")
>   (push-mark (if reversep (point-min) (point-max)) nil t)
>   (setq deactivate-mark nil))

M-> C-x C-x

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

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