Remove doom-fringe-size; set default fringe in :ui doom

There was no way to customize doom-fringe-size. Better to customize
fringes by using fringe-mode, {left,right}-fringe-width or
set-window-fringes directly.
This commit is contained in:
Henrik Lissner 2018-05-11 00:01:05 +02:00
parent 2b2f6bcf32
commit 52cdb0bd83
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 4 additions and 6 deletions

View file

@ -1,8 +1,5 @@
;;; core-ui.el -*- lexical-binding: t; -*-
(defvar doom-fringe-size '4
"Default fringe width.")
(defvar doom-theme nil
"A symbol representing the color theme to load.")
@ -562,8 +559,6 @@ frame's window-system, the theme will be reloaded.")
(menu-bar-mode -1)
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
;; standardize default fringe width
(if (fboundp 'fringe-mode) (fringe-mode doom-fringe-size))
;; prompts the user for confirmation when deleting a non-empty frame
(define-key global-map [remap delete-frame] #'doom/delete-frame)

View file

@ -277,7 +277,7 @@ that window has been changed or closed."
(defun +popup|adjust-fringes ()
"Hides the fringe in popup windows, restoring them if `+popup-buffer-mode' is
disabled."
(let ((f (if +popup-buffer-mode 0 doom-fringe-size)))
(let ((f (if +popup-buffer-mode 0)))
(set-window-fringes nil f f fringes-outside-margins)))
;;;###autoload

View file

@ -104,3 +104,6 @@
nil nil '(center repeated))
(define-fringe-bitmap 'git-gutter-fr:deleted [128 192 224 240]
nil nil 'bottom))
;; standardize default fringe width
(if (fboundp 'fringe-mode) (fringe-mode '4))