Emacs: Check if #'set-scroll-bar-mode exists.

This commit is contained in:
tastytea 2020-05-20 07:59:31 +02:00
parent 4ddde5cb17
commit 09651ab5b1
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-05-17T19:21:27+0200>
;; Time-stamp: <2020-05-20T05:59:14+0000>
;;; Commentary:
@ -29,7 +29,8 @@
(tool-bar-mode -1) ; Hide toolbar.
(menu-bar-mode -1) ; Hide menu bar.
(set-scroll-bar-mode 'right)
(when (fboundp #'set-scroll-bar-mode)
(set-scroll-bar-mode 'right))
(add-to-list 'default-frame-alist '(scroll-bar-width . 8))
(my/set-default-fonts)
(global-hl-line-mode t) ; Highlight current line.