unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to make reverse video the default behavior under Windows
@ 2002-10-01 20:00 Ben Key
  2002-10-02  6:27 ` Juanma Barranquero
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Key @ 2002-10-01 20:00 UTC (permalink / raw)
  Cc: GNU Emacs Help (E-mail)

I love to use Emacs in the reverse-video mode.  It makes it much easier for
me to see the Emacs display with my failing vision.
I do have one problem though.  The only way I know to get Emacs to start in
this mode is to run it from the command line using the --reverse-video
command line switch (or one of the various other command line switches that
cause Emacs to start in this mode).  This is fine except for when Emacs is
launched via the VisEmacs Visual Studio add in.

I cannot figure out how to make Emacs go into reverse-video mode by default.
Is it possible to do this from my .emacs file or via an environment
variable?  If it is not possible, how can I add this capability to Emacs?

Thank you.

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

* Re: How to make reverse video the default behavior under Windows
       [not found] <mailman.1033503318.27966.help-gnu-emacs@gnu.org>
@ 2002-10-01 23:31 ` Kevin Rodgers
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2002-10-01 23:31 UTC (permalink / raw)


Ben Key wrote:

> I love to use Emacs in the reverse-video mode.  It makes it much easier for
> me to see the Emacs display with my failing vision.
> I do have one problem though.  The only way I know to get Emacs to start in
> this mode is to run it from the command line using the --reverse-video
> command line switch (or one of the various other command line switches that
> cause Emacs to start in this mode).  This is fine except for when Emacs is
> launched via the VisEmacs Visual Studio add in.
> 
> I cannot figure out how to make Emacs go into reverse-video mode by default.
> Is it possible to do this from my .emacs file or via an environment
> variable?  If it is not possible, how can I add this capability to Emacs?


The "Display Vars" node of the manual suggests putting
	(setq inverse-video t)
in your .emacs file.

The "Colors X" node suggests putting
	emacs.reverseVideo:true
in your .Xdefaults or .Xresources file, although I suspect Windows has some
other mechanism (the registry?).


Finally, startup.el and x-win.el indicate that the --reverse-video option simply
does this:
	(setq default-frame-alist
	      (cons (cons 'reverse t) default-frame-alist))

-- 
<a href="mailto:&lt;kevinr&#64;ihs.com&gt;">Kevin Rodgers</a>

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

* Re: How to make reverse video the default behavior under Windows
  2002-10-01 20:00 How to make reverse video the default behavior under Windows Ben Key
@ 2002-10-02  6:27 ` Juanma Barranquero
  0 siblings, 0 replies; 4+ messages in thread
From: Juanma Barranquero @ 2002-10-02  6:27 UTC (permalink / raw)
  Cc: GNU Emacs Devel (E-mail), GNU Emacs Help (E-mail)

On Tue, 1 Oct 2002 16:00:33 -0400, Ben Key <BenK@FreedomScientific.com> wrote:

> I cannot figure out how to make Emacs go into reverse-video mode by default.

You can always manually set the foreground color to white (or light grey)
and the background to black in the registry.

In HKEY_LOCAL_MACHINE\Software\Gnu\Emacs I have values:

Emacs.Background = "black"
Emacs.Foreground = "light grey"

and, to be on the safe side, in my .emacs I add the following entries:

(background-color . "black")
(foreground-color . "light grey")
(background-mode  . dark)

to `default-frame-alist' and `initial-frame-alist'.


                                                           /L/e/k/t/u

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

* RE: How to make reverse video the default behavior under Windows
@ 2002-10-02 12:52 Ben Key
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Key @ 2002-10-02 12:52 UTC (permalink / raw)
  Cc: GNU Emacs Help (E-mail)

As I said in my earlier reply, I had already tried adding 

	(setq inverse-video t)

and

	(setq default-frame-alist
	      (cons (cons 'reverse t) default-frame-alist))

to my .emacs and neither one works.

However, your mention of the
  emacs.reverseVideo:true
line in .Xdefaults in conjunction with a suggestion given
in a message by Juanma Barranquero [lektu@terra.es]

 "
 You can always manually set the foreground color to
 white (or light grey) and the background to black in
 the registry.
 
 In HKEY_LOCAL_MACHINE\Software\Gnu\Emacs I have values:

 Emacs.Background = "black"
 Emacs.Foreground = "light grey"
 "

lead me to the solution to my problem.

I added a REG_SZ value "emacs.reverseVideo" to
HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Emacs and set it
equal to "true".

This worked perfectly.

I would like to thank you both.

-----Original Message-----
From: Kevin Rodgers [mailto:kevinr@ihs.com]
Sent: Tuesday, October 01, 2002 07:32 PM
To: help-gnu-emacs@gnu.org
Subject: Re: How to make reverse video the default behavior under
Windows


Ben Key wrote:

> I love to use Emacs in the reverse-video mode.  It makes it much easier
for
> me to see the Emacs display with my failing vision.
> I do have one problem though.  The only way I know to get Emacs to start
in
> this mode is to run it from the command line using the --reverse-video
> command line switch (or one of the various other command line switches
that
> cause Emacs to start in this mode).  This is fine except for when Emacs is
> launched via the VisEmacs Visual Studio add in.
> 
> I cannot figure out how to make Emacs go into reverse-video mode by
default.
> Is it possible to do this from my .emacs file or via an environment
> variable?  If it is not possible, how can I add this capability to Emacs?


The "Display Vars" node of the manual suggests putting
	(setq inverse-video t)
in your .emacs file.

The "Colors X" node suggests putting
	emacs.reverseVideo:true
in your .Xdefaults or .Xresources file, although I suspect Windows has some
other mechanism (the registry?).


Finally, startup.el and x-win.el indicate that the --reverse-video option
simply
does this:
	(setq default-frame-alist
	      (cons (cons 'reverse t) default-frame-alist))

-- 
<a href="mailto:&lt;kevinr&#64;ihs.com&gt;">Kevin Rodgers</a>

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

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

end of thread, other threads:[~2002-10-02 12:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-01 20:00 How to make reverse video the default behavior under Windows Ben Key
2002-10-02  6:27 ` Juanma Barranquero
     [not found] <mailman.1033503318.27966.help-gnu-emacs@gnu.org>
2002-10-01 23:31 ` Kevin Rodgers
  -- strict thread matches above, loose matches on Subject: below --
2002-10-02 12:52 Ben Key

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).