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:
parent
2b2f6bcf32
commit
52cdb0bd83
3 changed files with 4 additions and 6 deletions
|
@ -1,8 +1,5 @@
|
||||||
;;; core-ui.el -*- lexical-binding: t; -*-
|
;;; core-ui.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(defvar doom-fringe-size '4
|
|
||||||
"Default fringe width.")
|
|
||||||
|
|
||||||
(defvar doom-theme nil
|
(defvar doom-theme nil
|
||||||
"A symbol representing the color theme to load.")
|
"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)
|
(menu-bar-mode -1)
|
||||||
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
|
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
|
||||||
(if (fboundp 'scroll-bar-mode) (scroll-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
|
;; prompts the user for confirmation when deleting a non-empty frame
|
||||||
(define-key global-map [remap delete-frame] #'doom/delete-frame)
|
(define-key global-map [remap delete-frame] #'doom/delete-frame)
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,7 @@ that window has been changed or closed."
|
||||||
(defun +popup|adjust-fringes ()
|
(defun +popup|adjust-fringes ()
|
||||||
"Hides the fringe in popup windows, restoring them if `+popup-buffer-mode' is
|
"Hides the fringe in popup windows, restoring them if `+popup-buffer-mode' is
|
||||||
disabled."
|
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)))
|
(set-window-fringes nil f f fringes-outside-margins)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
|
|
@ -104,3 +104,6 @@
|
||||||
nil nil '(center repeated))
|
nil nil '(center repeated))
|
||||||
(define-fringe-bitmap 'git-gutter-fr:deleted [128 192 224 240]
|
(define-fringe-bitmap 'git-gutter-fr:deleted [128 192 224 240]
|
||||||
nil nil 'bottom))
|
nil nil 'bottom))
|
||||||
|
|
||||||
|
;; standardize default fringe width
|
||||||
|
(if (fboundp 'fringe-mode) (fringe-mode '4))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue