all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* more-mode for your pleasure
@ 2008-02-11 15:08 Miles Bader
  2008-02-11 20:36 ` v for view-mode [was: more-mode for your pleasure] Evans Winner
  2008-02-12 21:35 ` more-mode for your pleasure Juri Linkov
  0 siblings, 2 replies; 6+ messages in thread
From: Miles Bader @ 2008-02-11 15:08 UTC (permalink / raw)
  To: emacs-devel

Since "view-mode" sucks in just about every conceivable way, and is
AFAICT, un-salvageable, here's a more minimalist (but less sucky)
replacement you might enjoy:


;; Should be in subr.el
(defun scroll-up-one-line (&optional lines)
  (interactive "p")
  (scroll-up lines))

(defvar more-map
  (let ((mm (make-sparse-keymap)))
    (suppress-keymap mm)
    (define-key mm " " 'scroll-up)
    (define-key mm "\C-?" 'scroll-down)
    (define-key mm "\C-m" 'scroll-up-one-line)
    (define-key mm "q" 'bury-buffer)
    mm)
  "Keymap for `more-mode'.")

(define-minor-mode more-mode
  "A minor mode for browsing files.  SPC, DEL, and other keys are
bound to scroll the file instead of self-inserting.

\\{more-map}"
  :keymap more-map
  :lighter " More")


-Miles

-- 
"Whatever you do will be insignificant, but it is very important that
 you do it."  Mahatma Gandhi




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-12 21:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-11 15:08 more-mode for your pleasure Miles Bader
2008-02-11 20:36 ` v for view-mode [was: more-mode for your pleasure] Evans Winner
2008-02-11 23:00   ` v for view-mode Miles Bader
2008-02-11 23:20     ` Drew Adams
2008-02-12  3:20       ` Stefan Monnier
2008-02-12 21:35 ` more-mode for your pleasure Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.