From 5017bb1eedb20d980151c310d457918e9326802e Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 27 Feb 2020 02:21:14 +0800 Subject: [PATCH 1/2] Align the file icons horizontally. --- dashboard-widgets.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dashboard-widgets.el b/dashboard-widgets.el index 48c0a36d..ce250488 100644 --- a/dashboard-widgets.el +++ b/dashboard-widgets.el @@ -20,9 +20,13 @@ ;;; Code: +(require 'cl-lib) + ;; Compiler pacifier (declare-function all-the-icons-icon-for-dir "ext:all-the-icons.el") (declare-function all-the-icons-icon-for-file "ext:all-the-icons.el") +(declare-function all-the-icons-fileicon "ext:all-the-icons.el") +(declare-function all-the-icons-octicon "ext:all-the-icons.el") (declare-function bookmark-get-filename "ext:bookmark.el") (declare-function bookmark-all-names "ext:bookmark.el") (declare-function calendar-date-compare "ext:calendar.el") @@ -548,7 +552,8 @@ WIDGET-PARAMS are passed to the \"widget-create\" function." (all-the-icons-octicon "primitive-dot" :height 1.0 :v-adjust 0.01)) ((file-remote-p path) (all-the-icons-octicon "radio-tower" :height 1.0 :v-adjust 0.01)) - (t (all-the-icons-icon-for-file (file-name-nondirectory path))))))) + (t (all-the-icons-icon-for-file (file-name-nondirectory path) + :v-adjust -0.05)))))) (setq tag (concat icon " " ,@rest)))) (widget-create 'item From 59f8727cb34c34eafb6289c7af3e336180c41e38 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 27 Feb 2020 02:27:25 +0800 Subject: [PATCH 2/2] Fix CI issues. --- dashboard-widgets.el | 2 -- 1 file changed, 2 deletions(-) diff --git a/dashboard-widgets.el b/dashboard-widgets.el index ce250488..ba0fc522 100644 --- a/dashboard-widgets.el +++ b/dashboard-widgets.el @@ -25,8 +25,6 @@ ;; Compiler pacifier (declare-function all-the-icons-icon-for-dir "ext:all-the-icons.el") (declare-function all-the-icons-icon-for-file "ext:all-the-icons.el") -(declare-function all-the-icons-fileicon "ext:all-the-icons.el") -(declare-function all-the-icons-octicon "ext:all-the-icons.el") (declare-function bookmark-get-filename "ext:bookmark.el") (declare-function bookmark-all-names "ext:bookmark.el") (declare-function calendar-date-compare "ext:calendar.el")