From: Alder Green Date: 2006-05-17T00:28:35+09:00 Subject: Re: Editing ruby code with Emacs or Vim ? On 5/16/06, James Britt wrote: > Dave Burt wrote: > > James Britt wrote: > > > >>I've been using gvim for a while, but have been poking around with > >>xemacs. One big hurdle is figuring out how to assorted configuration; > >>for the life of me I cannot discover how to set up a different color > >>scheme. > > > > > > Use the colorscheme command. type ":colorscheme torte" (without the > > quotes, where "torte" is the name of a .vim file in /colors) in > > command-mode to try one out, and once you've found one, add the line > > "colorscheme torte" to .vimrc. > > Thanks; I should have been more clear. Vim colors I understand. It's > emacs colors that baffle me. > > > > -- > James Britt > > "Design depends largely on constraints." > - Charles Eames Ok, this is tested for Emacs 21.3: M-x (i.e. "run the builtin function") customize-face You'll get in the minibuffer: Customize face: (default all) Just hit enter, and Emacs would create a large buffer with the formatting options for each face. It's much beyond just colors: you can set e.g. variable names to be bold, have a different background color, different font... pretty much whatever you want. Just find the face you want to change; most are pretty obvious ("Variable Name", "String", "Keyword"). As with everything in Emacs, there are a some more advanced ways, including stuff like choosing from whole color schemes. Didn't really use it, so I can't comment; customizing the default scheme was enough for me. -- -Alder