Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Turning scrollbar off in emacsclient frames

137 views
Skip to first unread message

Ning Shi

unread,
Sep 8, 2015, 10:30:18 PM9/8/15
to help-gn...@gnu.org
I switched to use emacsclient recently and found that the scrollbar
always appears in the frame created by emacsclient. I have
scroll-bar-mode set to nil using customize and scrollbars don't appear
if I start a standalone emacs. What else should I check or set to hide
scrollbars in emacsclient frames?

Thanks,

--
Ning


Ian Zimmerman

unread,
Sep 8, 2015, 11:26:01 PM9/8/15
to help-gn...@gnu.org
Customize default-frame-alist and as one of the parameters include
vertical-scroll-bars = nil.

--
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.

Óscar Fuentes

unread,
Sep 9, 2015, 7:19:31 AM9/9/15
to help-gn...@gnu.org
Ning Shi <zee...@gmail.com> writes:

> I switched to use emacsclient recently and found that the scrollbar
> always appears in the frame created by emacsclient. I have
> scroll-bar-mode set to nil using customize and scrollbars don't appear
> if I start a standalone emacs. What else should I check or set to hide
> scrollbars in emacsclient frames?

Please use M-x report-emacs-bug for informing the Emacs maintainers
about this issue.

It also happens if you put (scroll-bar-mode -1) in your .emacs?


John Yates

unread,
Sep 9, 2015, 8:56:55 AM9/9/15
to help-gn...@gnu.org
On Tue, Sep 8, 2015 at 11:25 PM, Ian Zimmerman <i...@buug.org> wrote:

> Customize default-frame-alist and as one of the parameters include
> vertical-scroll-bars = nil.
>

Alternatively, if you are on running under X you can customize your
~/.Xresources. Here is mine:

Emacs.font: Dina-13
Emacs.fullscreen: maximized
Emacs.background: black
Emacs.foreground: white
Emacs.menuBar: off
Emacs.toolBar: off
Emacs.horizontalScrollBars: off
Emacs.verticalScrollBars: off

This seems to avoid a lot of flashing and frame resizing before emacs
settles into its initial configuration.

Ning Shi

unread,
Sep 9, 2015, 10:22:00 AM9/9/15
to help-gn...@gnu.org
Ian Zimmerman <i...@buug.org> writes:

> Customize default-frame-alist and as one of the parameters include
> vertical-scroll-bars = nil.

I tried this and it didn't work, either. However, what's interesting is
that if I remove (scroll-bar-mode nil) from customize, and leave
(vertical-scroll-bars) in default-frame-alist, then the scrollbar is
gone.

I've also tried (scroll-bar-mode -1) without setting
(vertical-scroll-bars) in default-frame-alist, it didn't remove the
scrollbars.

It seems like scroll-bar-mode doesn't work with emacsclient frames. Not
only that, putting it in customize will somehow override the
(vertical-scroll-bars) setting in default-frame-alist.

--
Ning

0 new messages