Emacs removing margins when in X

I am trying to configure emacs to open with just a black screen in X.
I have gotten everything the way I want except I can not figure out how to remove the margins that appear on the left and right of the screen.
Does anyone know what I can put in my .emacs in order to achieve this.
Thanks

Is that like the internal border? Borders X - GNU Emacs Manual

I tried opening emacs with the border options set to zero and nothing changed. I then tested by setting to 20 and the two bars moved inward a centimeter or so.
I tried looking up a bunch of different key words like fringe, margins scroll bars...
I am using a tiling window manager and a triangle will not go
away on the bottom right of the screen, I read somewhere that GTK shows the resize handle and it can't be disabled.
It gave 'possible' instructions on how to disable it.
It did not work on my machine. I need to recompile without the gtk tool kit.
I will try again later and repost here when I figure it out.

Does running emacs inside xterm help?

1 Like

Thanks for the reply. You just motivated me to try again.
I accidentally just pasted a chunk of text in emacs and noticed it is the place where the newline arrows are displayed. I looked it up and it is called 'The Fringe'. This is one of the things I tried without success. I should have posted my incorrect code on my first post.
I usually use emacs in xterm. This option is not needed there.

The code to disable the fringes is:

(set-fringe-mode 0)