basic EMACS question

Discussion in 'Mac Programming' started by JBot, Sep 28, 2009.

  1. JBot macrumors 6502

    Joined:
    Jan 9, 2006
    Location:
    Calgary.Alberta.Canada
    #1
    i was wondering how you would go about showing the line numbers under emacs?
    i found acouple sites that say you edit the .emacs file, but i cant locate that on file on my machine (awkward). anybody feel like helping me out?
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    [TROLL]
    Sure. ctrl-X, ctrl-C.
    At the terminal, type vim filename.xyz<enter>
    Type :set number<enter>
    =)
    [/TROLL]

    -Lee
     
  3. JBot thread starter macrumors 6502

    Joined:
    Jan 9, 2006
    Location:
    Calgary.Alberta.Canada
    #3
    and yes. that gives you line numbers in vim.
    but i asked about the emacs editor. not vim.
     
  4. notjustjay macrumors 603

    notjustjay

    Joined:
    Sep 19, 2003
    Location:
    Canada, eh?
    #4
    If the .emacs file doesn't exist, you could always just create one.
     

Share This Page