In Aquamacs, I have scrollbars turned off:
But when I do New Buffer in New Frame, i.e. ⌘-N, the new frame has a scrollbar. How do I make it so new frames have scrollbars off by default?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
The following, which you can add to
~/.emacs or wherever your init script happens to live, should solve this problem by disabling scrollbars on newly created frames, immediately after they're created:
(add-hook 'after-make-frame-functions '(lambda (frame) (modify-frame-parameters frame '((vertical-scroll-bars . nil) (horizontal-scroll-bars . nil)))))
Works for me in Emacs 24.3 on both Linux and Darwin; Aquamacs is weird, so your mileage may vary, but I doubt it's weird enough to break this.