From 20720cda61899d0492131a53fb11c919de02563e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 17 May 2019 01:08:57 -0400 Subject: [PATCH] Remove visual-fill-column package from Doom core It is not essential enough to keep in Doom core. I'm working on a new module (or a rewrite for app/write) to replace it. --- core/core-ui.el | 8 -------- core/packages.el | 1 - modules/app/write/packages.el | 1 + modules/email/notmuch/config.el | 6 ------ 4 files changed, 1 insertion(+), 15 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index c94fae38c..7d4664f72 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -364,14 +364,6 @@ read-only or not file-visiting." ;; languages like Lisp. (setq rainbow-delimiters-max-face-count 3) -;;;###package visual-fill-column -;; For a distractions-free-like UI, that dynamically resizes margins and can -;; center a buffer. -(setq visual-fill-column-center-text t - visual-fill-column-width - ;; take Emacs 26 line numbers into account - (+ (if EMACS26+ 6 0) fill-column)) - ;; ;;; Line numbers diff --git a/core/packages.el b/core/packages.el index 5eb934f72..4e1f28a17 100644 --- a/core/packages.el +++ b/core/packages.el @@ -19,7 +19,6 @@ (package! nlinum-hl) (package! nlinum-relative)) (package! rainbow-delimiters) -(package! visual-fill-column) (package! restart-emacs) ;; core-editor.el diff --git a/modules/app/write/packages.el b/modules/app/write/packages.el index fa7c69667..4827e984c 100644 --- a/modules/app/write/packages.el +++ b/modules/app/write/packages.el @@ -9,3 +9,4 @@ (when (featurep! +wordnut) (package! wordnut)) +(package! visual-fill-column) diff --git a/modules/email/notmuch/config.el b/modules/email/notmuch/config.el index 825b1f0a2..ab7268a38 100644 --- a/modules/email/notmuch/config.el +++ b/modules/email/notmuch/config.el @@ -46,12 +46,6 @@ (advice-add #'notmuch-start-notmuch-sentinel :around #'+notmuch*dont-confirm-on-kill-process) - ;; Visual enhancements - (defun +notmuch|center-window () - (setq-local visual-fill-column-width 90) - (visual-fill-column-mode)) - (add-hook 'notmuch-show-mode-hook #'+notmuch|center-window) - ;; modeline doesn't have much use in these modes (add-hook! (notmuch-show-mode notmuch-tree-mode notmuch-search-mode) #'hide-mode-line-mode))