Currenty I am on LaTeX-mode-hook
and added following line global-hl-todo-mode
into .emacs
file to use hl-todo. On its readme it says:
To highlight keywords turn on
hl-todo-mode
in individual buffers or use the the global variantglobal-hl-todo-mode
.
My setup:
; L A T E X ;
(setq LaTeX-item-indent 0)
(add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)
(add-hook 'LaTeX-mode-hook 'hl-todo-mode)
(require 'tex)
(add-hook 'LaTeX-mode-hook (lambda ()
(TeX-global-PDF-mode t)
(global-hl-todo-mode t) ; <= added here
))
(global-hl-todo-mode 1) ; <= added bottom of the page
When I open emacs -nw file.tex
, I need to disable and than re-enable global-hl-todo-mode
in order to use it. Is there any way to fix this issue?
Please note that, this was working perfectly fine in python-mode
.