From a25ad3fa7cb966bdc4bf1925b4397989128150d6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 30 Oct 2020 17:12:22 -0400 Subject: [PATCH] Restore line numbers in artist-mode #2742 The issue was fixed upstream, but won't be available until Emacs 28. --- core/core-ui.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index edb5c00c5..2bb78c8b5 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -517,8 +517,10 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original #'display-line-numbers-mode) ;; Fix #2742: cursor is off by 4 characters in `artist-mode' -;; REVIEW: Reported upstream https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43811 -(add-hook 'artist-mode-hook #'doom-disable-line-numbers-h) +;; REVIEW Reported upstream https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43811 +;; DEPRECATED Fixed in Emacs 28; remove when we drop 27 support +(unless EMACS28+ + (add-hook 'artist-mode-hook #'doom-disable-line-numbers-h)) ;;