Here's the relevant snippets that I use in my .emacs file for setting
color and such. It's work without a problem on Windows 2000. Let me
know if you have problems. I'm not an expert, but I'll try. <grin>
Later,
Marc
-- snipped .emacs file --
;;;===================================================
;;; Set the default font and frame size for all frames
;;;===================================================
(defconst my_background_color "white")
(defconst my_foreground_color "black")
(defconst my_cursor_color "red")
(defconst my_font "-*-Lucida
Console-normal-r-*-*-12-90-96-96-c-*-iso8859-1")
;size 9 (defconst my_italic_font nil)
(defconst my_bold_font nil)
;;; initial window position settings
;;; with the top left corner as 0 0
;;; and the bottom right as -1 -1
(defconst my_initial_top 0)
(defconst my_initial_left 0)
(defconst my_initial_width 95)
(defconst my_initial_height 58)
;;; default window position settings, for frames created after emacs
;;; is running
(defconst my_default_top 25)
(defconst my_default_left -75)
(defconst my_default_width 120)
(defconst my_default_height 75)
(set-frame-font my_font)
;;;===================================================================
===
;;; now use the values above to set the frame sizes and fonts for the
;;; initial and subsequent frames
;;;===================================================================
===
;; set the default font (frame-font)
(set-frame-font my_font)
(if (not window-system)
nil
;;; Set the font and frame size for the initial frame.
(setq initial-frame-alist
`((top . ,my_initial_top)
(left . ,my_initial_left)
(width . ,my_initial_width)
(height . ,my_initial_height)
(menu-bar-lines . 1)
(cursor-type . box)
(cursor-color . ,my_cursor_color)
(font . ,my_font)
(foreground-color . ,my_foreground_color)
(background-color . ,my_background_color)))
;;; Set the default font and frame size
(setq default-frame-alist
`((top . ,my_default_top)
(left . ,my_default_left)
(width . ,my_default_width)
(height . ,my_default_height)
(menu-bar-lines . 1)
(cursor-type . box)
(cursor-color . ,my_cursor_color)
(font . ,my_font)
(foreground-color . ,my_foreground_color)
(background-color . ,my_background_color)))
)
> -----Original Message-----
> From: ANDRIAMASINORO Fenintsoa
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 21, 2000 8:50 AM
> To: Niranjan Rao; [EMAIL PROTECTED]; Yaroslav Bulatov
> Subject: Re: Variables settings
>
>
>
>
> Niranjan Rao a �crit :
>
> > I have following in my .emacs which seems to be doing
> something similar to
> > what you asked in question 1.
> >
> > (load "paren")
> > (show-paren-mode t)
> > (setq paren-face 'bold)
> > (setq paren-sexp-mode t)
> > (setq paren-delay 5)
> >
> > HTH,
> >
>
> It's OK. Thank you. In fact, all terms are not highlighted.
> Only the brackets
> or accolade are one. But it is not a problem.
>
> > Hi all,
> >
> > 1- Is there anyone who knows which variable must be set
> to have the
> > syntax highlighting? (it means all code betwwen brackets
> or accolade are
> > highlighted if the cursor is at the beginning or at the end of the
> > brackets or accolade). I know in XEmacs, it is possible
> but I am under
> > Emacs (Windows)
> > 2- Is it possible to relate two or more actions with
> global-set-key
> > instead of only one action?
>
> Yaroslav Bulatov a �crit :
>
> > Record a macro which combines the actions. Then name the macro
> > ("name-last-kbd-macro"). Then save the
> > macro in your .emacs file ("insert-kbd-macro") Then
> assign the key to that
> > macro.
> >
> > Yaroslav
>
> I'd like to ask you again the way to record a macro.
>
>
> > 3- when I set the "set-background-color" variable (blue
> for instance) in
> > _emacs file, and load a .java file, the background is
> blue only at Emacs
> > loading but comes back to its initial color (generally grey) while
> > loading the .java file. What may be the problem?
> >
>
> I have myself resolved the problem. In fact, the
> set-backgound-color doesn't
> work at JDE loading but only at Emacs one. On the other
> hand, the following
> instruction
> (setq default-frame-alist
> '(
> (background-color . "white")
> ))
> works only at JDE loading but not at Emacs one. I don't know why.
>
> One question: Is there one of you who already try to use
> set-cursor-color?
> Apparently, It doesn't work with Emacs (Windows)I don't
> know about Unix.
>
> > Thank you all
> >
> > Fenintsoa
> >
> >
>
> -----(�_�)------
> ANDRIAMASINORO Fenintsoa
> Multi-agent Researcher
> IREMIA University of La R�union
> FRANCE
> T�l: 02 62 89 51 65 (portable) / 02 62 93 83 24 (office)
> E-Mail: [EMAIL PROTECTED]
> ----------------------------
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com