From 9eaa312ac800a689d659172af503686dd8db3629 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 14 Nov 2020 22:49:09 +0100 Subject: [PATCH] Emacs: Move advice for doom-themes-hide-fringes-maybe to doom-themes. --- init.d/basics/appearance.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/init.d/basics/appearance.el b/init.d/basics/appearance.el index 7bb0b98..f607f6d 100644 --- a/init.d/basics/appearance.el +++ b/init.d/basics/appearance.el @@ -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.