commit 911306f4dcdaefe49c57979e6289f75c0b0b2f59
parent b0460ab488915de76f738a7422d6c9aa69b12586
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 24 Feb 2018 22:17:25 -0800
Add function to disable scrollbars for new frames.
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/README.org b/README.org
@@ -254,18 +254,22 @@ Hide menu, scrollbar and toolbars.
(tool-bar-mode -1)
#+END_SRC
+**** New Frame Scrollbar
Remove scrollbar for any new frames as well, useful for =emacsclient=.
#+BEGIN_SRC emacs-lisp
- (add-to-list 'default-frame-alist
- '(vertical-scroll-bars . nil))
+ (defun user/disable-scroll-bars (frame)
+ (modify-frame-parameters frame
+ '((vertical-scroll-bars . nil)
+ (horizontal-scroll-bars . nil))))
+ (add-hook 'after-make-frame-functions 'user/disable-scroll-bars)
#+END_SRC
*** Half screen fix
Fills up gap in the border when tiling emacs to half-screen.
#+BEGIN_SRC emacs-lisp
-(setq frame-resize-pixelwise t)
+ (setq frame-resize-pixelwise t)
#+END_SRC
*** Default Font