Emacs - the first character of each line starts at the end of the window

I have installed Solarized for a terminal application on Mac OSX 10.9.5. It works fine, only now I have a problem with Emacs.

In particular, when I edit a python file in Emacs, if a line appears after a comment line, its first character appears at the end of the window. This line then continues on the next line of the terminal window. So it looks something like this:

# comment 1
                                             F
irst line
Second line
# comment 2
                                             T
hird line
# comment 3
                                             F
ourth line
Fifth line
Sixth line

      

This makes editing the file very difficult. There are other problems as well. For example, when I try to change what appears to be the second line, Emacs will actually edit the third line. The visual feedback doesn't seem to match the actual text.

I tried googling to figure out what the problem is, but I can't find anything. I don't even know where to start. If anyone can provide some advice, I would really appreciate it. Thank!

On the one hand: I have the same problem for GNU Emacs 21.4.1 and GNU Emacs 23.1.1.

+3


source to share


2 answers


So, I had the same problem and after experimenting with a few different things, I found the following solution:



Go to Settings → Profiles → Solarized Dark / Light → Advanced. In the "Terminfo" section, change the "ansi" value to "xterm-256color". This works for me with both Solarized Dark and Light.

0


source


Another thing to check for each theme is that your character spacing is set to a value other than 1.



Look in settings → Profiles → Text → Font (click the "Change ..." button). If your character spacing is approximately 1.004 or 0.996, set it exactly to 1, close open windows and open a new window for the profile you changed. It fixed this issue for me on OSX 10.11.1.

0


source







All Articles