Thread: Emacs

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2011
    Posts
    98
    Rep Power
    0

    Emacs


    i have come accross emacs...while googling and I hear it is a very customisable text editor.

    i used ubuntu's apt-get to install emacs on my computer.

    i then ran emacs but i could not understand anything... on how to change back ground and fore ground colors?

    since there is only one customisation required for me....i hope you can tell me....

    i want the background to be black
    and i want the text to be in green...

    this is the same color scheme i use in kate and gedit...

    -Lokesh
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2011
    Posts
    98
    Rep Power
    0

    Done


    I figured it out from this site

    i used color-theme-matrix...

    now i have also started using emacs from terminal using
    "emacs -nw"

    now since i have one configuration for the gui version the same thing loads up in the terminal and instead of giving me green and black it gives me blue and white...wierd.....

    so i was hoping i could split the configuration into two and depending on whether i am using terminal or the gui

    anyone knows how i can split the configuration into two and then pick one when i start emacs?
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,592
    Rep Power
    4207
    Yeah, you can do it in your .emacs file:
    Code:
    (require 'color-theme)
    (color-theme-initialize)
    (if window-system
       ;; X windows theme
       (my-color-theme-borland)
       ;; terminal mode coloring theme
       (color-theme-blue-sea)
    )
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo