From 89aae06f86c6453d7a62fc271710af4e14749968 Mon Sep 17 00:00:00 2001 From: Sam Pillsworth Date: Tue, 18 Dec 2018 19:13:48 -0500 Subject: [PATCH] global-hl-todo-mode prevents activation in org global-hl-todo-mode uses function to activate only for modes that are in the activate list but are not org-mode. Reference: https://github.com/tarsius/hl-todo/blob/24b9925b1b2c7ad6bf7b66800395f74abf035c5f/hl-todo.el#L185-L188 Adds a comment re `hl-todo-activate-in-modes` var --- CHANGELOG.develop | 1 + layers/+spacemacs/spacemacs-visual/packages.el | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.develop b/CHANGELOG.develop index a3778f313..083d3dd7e 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -957,6 +957,7 @@ Other: - Fix doom-modeline in the messages buffer (thanks to duianto) - Fix void function error when recentf-save-list is undefined (thanks to Compro-Prasad) + - =global-hl-todo-mode= prevents activation in org (thanks to Sam Pillsworth) *** Layer changes and fixes **** Ansible - Improvements: diff --git a/layers/+spacemacs/spacemacs-visual/packages.el b/layers/+spacemacs/spacemacs-visual/packages.el index 169d28e74..a522f32cf 100644 --- a/layers/+spacemacs/spacemacs-visual/packages.el +++ b/layers/+spacemacs/spacemacs-visual/packages.el @@ -53,8 +53,10 @@ (defun spacemacs-visual/init-hl-todo () (use-package hl-todo :defer t - :init (spacemacs/add-to-hooks 'hl-todo-mode '(text-mode-hook - prog-mode-hook)))) + :init + ;; global hook activates hl-todo-mode for prog-mode, text-mode + ;; mode can be explicitly defined using hl-todo-activate-in-modes variable + (global-hl-todo-mode 1))) (defun spacemacs-visual/init-popup ())