🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #274

Re: how to make selection reverse video instead of underlined?

#274
From: Martin Boyer
Date: Sat, 26 Sep 1992 12:01
62 lines
2341 bytes
>>>>> David MacKenzie writes:

>In epoch 4.2, how can I make the mouse selection get put in reverse
>video (or some color) instead of getting underlined?

I use the following, which is more than you asked, but gives examples
of most of the possible settings.  Just put in your .emacs.

(Note: You'll need the cl library to evaluate "when", "list*" and
       "unless", but I'm sure you get the idea.)

(when (and (boundp 'epoch::version)
	   (> (epoch::number-of-colors) 2))

  ;; Base Colors

  (setq epoch::screen-properties
	(list*
	 (cons 'background	    "burlywood1")
	 (cons 'foreground	    "navy")
	 (cons 'cursor-color	    "burlywood4")
	 (cons 'cursor-background   "white")
	 (cons 'cursor-foreground   "DodgerBlue2")
	 epoch::screen-properties))

  ;; Selections

  (unless motion::style (setq motion::style (make-style)))
  (set-style-foreground motion::style (foreground))
  (set-style-background motion::style "burlywood")
  (set-style-underline motion::style nil)

  ;; Mode Line

  (defvar mode:*normal-style* (make-style) "Normal modeline style")

  (let ((s1 mode:*normal-style*))
    (set-style-foreground   s1 "navy")
    (set-style-background   s1 "green3")
    (set-style-font	    s1 "ncenr12"))

  (setq default-mode-line-format
	(list
	 ""
	 'mode:*normal-style*     
	 'mode-line-modified
	 'mode-line-buffer-identification
	 "   "
	 'global-mode-string
	 "   %[("
	 'mode-name 'minor-mode-alist "%n" 'mode-line-process
	 ")%]----"
	 (cons -3 "%p")
	 "-%-")
	)
  )

--
Martin Boyer                            mboyer@ireq-robot.hydro.qc.ca
Institut de recherche d'Hydro-Quebec    mboyer@ireq-robot.uucp
Varennes, QC, Canada   J3X 1S1
+1 514 652-8412
Technical Details
Message-ID: <GAMIN.92Sep26080135@amadeus.ireq-robot.hydro.qc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!NetNews.ireq.hydro.qc.ca!gamin
References: <DJM.92Sep23152408@frob.eng.umd.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!NetNews.ireq.hydro.qc.ca!gamin
From: gamin@ireq-robot.hydro.qc.ca (Martin Boyer)
Newsgroups: gnu.epoch.misc
Subject: Re: how to make selection reverse video instead of underlined?
Message-ID: <GAMIN.92Sep26080135@amadeus.ireq-robot.hydro.qc.ca>
Date: 26 Sep 92 12:01:35 GMT
References: <DJM.92Sep23152408@frob.eng.umd.edu>
Sender: news@ireq.hydro.qc.ca (Netnews Admin)
Organization: Le laboratoire de robotique de l'Institut de recherche
 d'Hydro-Quebec
Lines: 62
In-Reply-To: djm@eng.umd.edu's message of 23 Sep 92 16:24:08 EDT