Making Aquamacs scroll more like Emacs

When I used emacs, I was able to set a mark and select full pages for yanking using Cv or scrolling. However, in Aquamacs, if I set the sign, press Cv, it will lose the mark and will no longer stand out. I noticed that in Aquamacs Cv displays instead on aquamacs-page-down, so I tried to add the following command to my site file:

(define-key osx-key-mode-map "C-v" 'scroll-up)

and it failed to successfully reassign the key. Then I tried something like this:

(define-key global-map "\C-v" 'scroll-up)

and still nothing. Aquamacs clings very hard to display the Aquamacs page down. I noticed, however, that there is an additional function, aquamacs-page-down-extend-region, which does exactly what I'm talking about. Its key sequence, however, is, and I have no idea how to introduce this. I tried shift-control-v to no avail.

Has anyone been able to get Aquamacs to scroll pages while saving a tag?

+3
source share
2 answers

I found a way to make this work, for the sake of posterity.

Paste this into the .emacs file:

;; Enable scrolling to maintain mark if set
(defun scroll-down-maintain-mark ()
  (interactive)
  (if mark-active
      (aquamacs-page-down-extend-region)
    (aquamacs-page-down)))

(defun scroll-up-maintain-mark ()
  (interactive)
  (if mark-active
      (aquamacs-page-up-extend-region)
    (aquamacs-page-up)))

(define-key global-map "\C-v" #'scroll-down-maintain-mark)
(define-key global-map "\M-v" #'scroll-up-maintain-mark)
+3
source

tapping C-SPC C-v C-l, the last reuse screen seems to show that it really retains the sign.

and subsequent copy and yank work fine

, Aquamacs.

+1

All Articles