I have been looking around for some fix for this but I cannot google-fu my way out of it. I have tried setting the fringe, but that doesn't seem to work. Right now I have the code

(unless (bound-and-true-p linum-mode)
  (setq left-fringe-width 10))

To give my text some space to the left of the edge of the buffer when linum-mode isn't enabled. This is because with neo-tree active its hard to see the edge of the text sometimes, and the text is pressed right up against the edge of the window. However, this doesn't seem to work. Is there a better method to do this? I am using console Emacs.


  • The question is unclear. Try giving a step-by-step recipe or showing a screenshot or something. It's not clear what you want and why (in what way), in particular, a left fringe does not give you what you want. – Drew Dec 23 '15 at 0:18
  • I guess left-fringe-width won't work in text mode. I think it is a X11 thing. It is measured in pixels. But, maybe I am underestimating the capabilities of the console... – Tobias Dec 23 '15 at 5:55
  • Looks like my guess was right. The section on "fringes" in the emacs-info-manual starts with "On graphical displays, Emacs draws fringes next to each window". – Tobias Dec 23 '15 at 6:08
  • 1
    I think the following link answers your question: stackoverflow.com/questions/7251784/… – Tobias Dec 23 '15 at 6:15
  • @Tobias Seems to be what im looking for. Post this as an answer so I can give you credit. – Steei Dec 23 '15 at 17:30

The answer from https://stackoverflow.com/questions/7251784/how-do-i-adjust-the-left-margin-in-emacs-nox:

(set-window-margins nil 1) will instantly give a left margin of one char to the current window (that's the nil)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.