Emacs: Move advice for doom-themes-hide-fringes-maybe to doom-themes.
This commit is contained in:
parent
e6b05c01dc
commit
9eaa312ac8
|
@ -68,7 +68,7 @@
|
|||
(doom-themes-treemacs-config))
|
||||
|
||||
(set-face-background 'scroll-bar (face-background 'default))
|
||||
(set-face-foreground 'scroll-bar (face-foreground 'shadow)))
|
||||
(set-face-foreground 'scroll-bar (face-foreground 'shadow))
|
||||
|
||||
;; Write a minimal theme to file, to load it in early-init.el.
|
||||
(unless (string= (face-background 'default) "unspecified-bg")
|
||||
|
@ -82,7 +82,13 @@
|
|||
" (tool-bar-mode -1))\n"))
|
||||
(with-temp-file (expand-file-name "early-theme.el"
|
||||
user-emacs-directory)
|
||||
(insert minimal-theme)))))
|
||||
(insert minimal-theme))))
|
||||
|
||||
(defun my/treemacs-reset-fringe ()
|
||||
"Make fringe in treemacs visible again."
|
||||
(set-window-fringes (selected-window) 8))
|
||||
(advice-add #'doom-themes-hide-fringes-maybe
|
||||
:after #'my/treemacs-reset-fringe)))
|
||||
) ; unless slow-computer.
|
||||
|
||||
;; Neat modeline.
|
||||
|
@ -93,12 +99,6 @@
|
|||
(doom-modeline-buffer-file-name-style 'truncate-except-project)
|
||||
(mode-line-percent-position nil) ; Don't display percentage.
|
||||
(doom-modeline-buffer-state-icon nil)) ; Don't display save icon.
|
||||
:config (progn
|
||||
(defun my/treemacs-reset-fringe ()
|
||||
"Make fringe in treemacs visible again."
|
||||
(set-window-fringes (selected-window) 8))
|
||||
(advice-add #'doom-themes-hide-fringes-maybe
|
||||
:after #'my/treemacs-reset-fringe))
|
||||
:hook (after-init . doom-modeline-mode))
|
||||
|
||||
;; Show line numbers on the left side of the buffer.
|
||||
|
|
Loading…
Reference in New Issue
Block a user