home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Sat, 23 Jan 1993 18:58:46 EST
- Message-ID: <199301232347.AA11986@wsrcc.com>
- Date: Sat, 23 Jan 1993 23:47:44 GMT
- From: wolfgang@wsrcc.com (Wolfgang S. Rupprecht)
- Organization: W S Rupprecht Computer Consulting, Fremont CA
- References: <9301231628.AA00153@artemis.ora.com>
- Subject: Re: Is there useful lemacs elisp available?
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 59
-
- david@ora.com (David Flanagan) writes:
- >For example, is there a man-page mode for viewing man pages with
- >multiple fonts?
-
- Load this and then run M-x man.
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; ;;
- ;; File: bold.el ;;
- ;; Author: Wolfgang S. Rupprecht <wolfgang@wsrcc.com> ;;
- ;; Created: Wed Jun 10 01:13:57 PDT 1992 ;;
- ;; Contents: >>>Replace this with YOUR description of file contents<<< ;;
- ;; ;;
- ;; Copyright (c) 1992 Wolfgang S. Rupprecht. ;;
- ;; Hack this and enjoy it. Just don't try to sell it or remove
- ;; the copyright.
- ;; ;;
- ;; $Header$ ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (provide 'bold)
-
- (or (find-face 'ascii-underline) (make-face 'ascii-underline))
- (or (find-face 'ascii-overstrike) (make-face 'ascii-overstrike))
-
- (if purify-flag ; being preloaded
- nil
- (or (face-differs-from-default-p 'ascii-underline (selected-screen))
- (copy-face 'bold-italic 'ascii-underline (selected-screen)))
- (or (face-differs-from-default-p 'ascii-overstrike (selected-screen))
- (copy-face 'bold 'ascii-overstrike (selected-screen)))
- )
-
- (defun fixup-manual ()
- "Make a Unix man page look spiffy."
- (interactive)
- (save-excursion
- (map-extents (function (lambda (x y) (delete-extent x)))
- (current-buffer) (point-min) (point-max) nil)
- (let (extent
- case-replace)
- (goto-char (point-min))
- (while (re-search-forward "\\(_\C-h.\\)+" nil t)
- (setq extent (make-extent (match-beginning 0) (match-end 0)))
- (set-extent-face extent 'ascii-underline))
- (goto-char (point-min))
- (while (re-search-forward "^[A-Z][A-Z0-9 ()_]+$" nil t)
- (setq extent (make-extent (match-beginning 0) (match-end 0)))
- (set-extent-face extent 'ascii-overstrike))
- (goto-char (point-min))
- (replace-regexp "_\C-h" ""))))
-
- (fset 'nuke-nroff-bs 'fixup-manual)
- (fset 'Manual-nuke-nroff-bs 'fixup-manual)
-
- ;; end
- --
- Wolfgang Rupprecht wolfgang@wsrcc.com (or) decwrl!wsrcc!wolfgang
- Snail Mail: 39469 Gallaudet Drive, Fremont, CA 94538-4511
-