Disable scroll bars on new frames
This commit is contained in:
parent
5fe88ae9d2
commit
198b101722
@ -41,12 +41,19 @@
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
(setq inhibit-startup-screen t) ;; Startup screen
|
(setq inhibit-startup-screen t) ;; Startup screen
|
||||||
(if (display-graphic-p)
|
|
||||||
(funcall (lambda ()
|
|
||||||
(tool-bar-mode -1) ;; System bar
|
|
||||||
(set-fringe-mode '(1 . 1)) ;; Minimize arrows before and after wrapped lines by setting fringe to 1px
|
|
||||||
(toggle-scroll-bar -1)))) ;; Scroll bar
|
|
||||||
(setq frame-resize-pixelwise t) ;; Use 100% of window space
|
(setq frame-resize-pixelwise t) ;; Use 100% of window space
|
||||||
|
(defun do-frame-config ()
|
||||||
|
(tool-bar-mode -1) ;; System bar
|
||||||
|
(set-fringe-mode '(1 . 1)) ;; Minimize arrows before and after wrapped lines by setting fringe to 1px
|
||||||
|
(toggle-scroll-bar -1))
|
||||||
|
|
||||||
|
(defun disable-scroll-bars (frame)
|
||||||
|
(modify-frame-parameters frame
|
||||||
|
'((vertical-scroll-bars . nil)
|
||||||
|
(horizontal-scroll-bars . nil))))
|
||||||
|
(when (display-graphic-p)
|
||||||
|
(do-frame-config)
|
||||||
|
(add-hook 'after-make-frame-functions 'disable-scroll-bars))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** System path (macos)
|
** System path (macos)
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
@ -61,6 +61,12 @@ pikaur -S asdf-vm thefuck
|
|||||||
echo ". /opt/asdf-vm/asdf.sh" >> $MACHINE_ZSH
|
echo ". /opt/asdf-vm/asdf.sh" >> $MACHINE_ZSH
|
||||||
echo "eval \$(thefuck --alias)" >> $MACHINE_ZSH
|
echo "eval \$(thefuck --alias)" >> $MACHINE_ZSH
|
||||||
|
|
||||||
|
# setup node versions
|
||||||
|
. /opt/asdf-vm/asdf.sh
|
||||||
|
asdf plugin add nodejs
|
||||||
|
asdf install nodejs lts-gallium
|
||||||
|
asdf global nodejs lts-gallium
|
||||||
|
|
||||||
# Now, generate ssh key
|
# Now, generate ssh key
|
||||||
ssh-keygen -t ed25519
|
ssh-keygen -t ed25519
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user