I'm using Emacs in dwm window manager of suckless.org, with the following init.el
:
(menu-bar-mode 0)
(scroll-bar-mode 0)
(tool-bar-mode 0)
When I launch Emacs, with the command $ emacs
, my scroll bar thumb vanishes, as it should because I have used scroll-bar-mode 0
in my init file. But the scroll-bar space remains, colored black, on the right side of the main window.
I can quickly go into floating mode and back into tiling mode to fix the problem and I don't exit emacs that often. So, it's not a big problem, but it is certainly annoying. I haven't have gotten a chance to test if this also happens in other window managers.
And if I launch Emacs with $ emacs -Q
, and evaluate the codes in my init file, similar thing happens. Only this time, instead of the scroll-bar area being blacked out, it just gets messed up.
Does anyone know what is going on there? I have Emacs latest release version 26.1
GNU Emacs 26.1
Copyright (C) 2018 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Edit
I have just found out that the problem is fixed by putting (scroll-bar-mode 0)
after (tool-bar-mode 0)
and not before! Why is that?
emacs -Q
(no init file, other than the code you show)? If so, please state that in the question. If not, please try to do that.emacs -Q
and you evaluate just those 3 sexps in buffer*scratch*
(usingC-x C-e
)? If so, I don't see that with an MS Windows build of Emacs 26.1, FWIW.M-x report-emacs-bug
.