From 53c016ffa65cc20bb65abb6559d345c3b6b0ffde Mon Sep 17 00:00:00 2001 From: Ricardo Arredondo Date: Fri, 6 Nov 2020 09:48:47 -0600 Subject: [PATCH] Optional page-break-lines. --- dashboard-widgets.el | 4 ++-- dashboard.el | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dashboard-widgets.el b/dashboard-widgets.el index ecea505f..920ba0aa 100644 --- a/dashboard-widgets.el +++ b/dashboard-widgets.el @@ -14,7 +14,7 @@ ;; Created: October 05, 2016 ;; Package-Version: 1.8.0-SNAPSHOT ;; Keywords: startup, screen, tools, dashboard -;; Package-Requires: ((emacs "25.3") (page-break-lines "0.11")) +;; Package-Requires: ((emacs "25.3")) ;;; Commentary: ;; An extensible Emacs dashboard, with sections for @@ -60,7 +60,7 @@ (defvar all-the-icons-dir-icon-alist) (defvar package-activated-list) -(defcustom dashboard-page-separator "\n\f\n" +(defcustom dashboard-page-separator "\n\n" "Separator to use between the different pages." :type 'string :group 'dashboard) diff --git a/dashboard.el b/dashboard.el index 6725a7b5..d0176ebb 100644 --- a/dashboard.el +++ b/dashboard.el @@ -14,7 +14,7 @@ ;; Created: October 05, 2016 ;; Package-Version: 1.8.0-SNAPSHOT ;; Keywords: startup, screen, tools, dashboard -;; Package-Requires: ((emacs "25.3") (page-break-lines "0.11")) +;; Package-Requires: ((emacs "25.3")) ;;; Commentary: ;; An extensible Emacs dashboard, with sections for @@ -24,7 +24,6 @@ (require 'seq) (require 'recentf) - (require 'dashboard-widgets) ;; Custom splash screen @@ -62,7 +61,8 @@ (linum-mode -1) (when (>= emacs-major-version 26) (display-line-numbers-mode -1)) - (page-break-lines-mode 1) + (when (require 'page-break-lines nil t) + (page-break-lines-mode 1)) (setq inhibit-startup-screen t buffer-read-only t truncate-lines t))