Disable scroll bars on new frames

This commit is contained in:
Lizzy Hunt 2023-04-04 10:47:14 -06:00
parent 5fe88ae9d2
commit 198b101722
No known key found for this signature in database
GPG Key ID: E835BD4B08CCAF96
2 changed files with 18 additions and 5 deletions

View File

@ -41,12 +41,19 @@
#+BEGIN_SRC emacs-lisp
(menu-bar-mode -1)
(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
(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
** System path (macos)
#+BEGIN_SRC emacs-lisp

View File

@ -61,6 +61,12 @@ pikaur -S asdf-vm thefuck
echo ". /opt/asdf-vm/asdf.sh" >> $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
ssh-keygen -t ed25519