#1
  1. Web Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2001
    Location
    Finland
    Posts
    719
    Rep Power
    15

    Truncate lines in emacs


    I wasn't really sure where to post this, since the emacs forum is closed. Correct me if i misposted.

    My concerns involves emacs. To truncate lines in I set use Esc+x to set a variable truncate-lines, to value 1. The problem I'm having is that whenever I open emacs, again or a new one, I have to set this again. So if I have five files, I need to do this five times. Is there a way to automate this, so that emacs would set this for me?
    -- Tomi Kaistila
    -- Developer's Journal

    The more you learn, the more you know.
    The more you know, the more you forget.
    The more you forget, the less you know.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    there should be a file ".emacsrc" or ".emacs" in your home directory where you can set preferences.
    if not, a template should be under /usr/lib/emacs (depending on your distribution)

    you can even do it somewhere deep in the menu structure.. but dont ask me where exactly....
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> I wasn't really sure where to post this

    Don't worry, your post fits best here.
  6. #4
  7. Web Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2001
    Location
    Finland
    Posts
    719
    Rep Power
    15
    Originally posted by M.Hirsch
    there should be a file ".emacsrc" or ".emacs" in your home directory where you can set preferences.
    if not, a template should be under /usr/lib/emacs (depending on your distribution)
    I found the directory you mentioned but couldn't find either of the file (neither one). I also checked my user home dir but came out empty handed. I've tried to sweep through the system but still nothing. Is there another location where I could find the find?
    -- Tomi Kaistila
    -- Developer's Journal

    The more you learn, the more you know.
    The more you know, the more you forget.
    The more you forget, the less you know.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    start emacs in x-windows. then you can access the options from the menu... save them and have a look at the .emacsrc. i know this is lame, but hey, anyone got a better answer?

IMN logo majestic logo threadwatch logo seochat tools logo