File tree 2 files changed +35
-38
lines changed
2 files changed +35
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ** Highlight TODO and similar keywords in comments and strings
2
+
3
+ To highlight keywords turn on ~hl-todo-mode~ in individual buffers
4
+ or use the global variant ~global-hl-todo-mode~.
5
+
6
+ You can customize the keywords that are recognized by customizing
7
+ ~hl-todo-keyword-faces~ either through the customization interface
8
+ or by setting the variable directly in your init file, for example:
9
+
10
+ #+begin_src emacs-lisp
11
+ (setq hl-todo-keyword-faces
12
+ '(("TODO" . "#FF0000")
13
+ ("FIXME" . "#FF0000")
14
+ ("DEBUG" . "#A020F0")
15
+ ("GOTCHA" . "#FF4500")
16
+ ("STUB" . "#1E90FF")))
17
+ #+end_src
18
+
19
+ This package also provides commands for moving to the next or
20
+ previous keyword, to invoke ~occur~ with a regexp that matches all
21
+ known keywords, and to insert a keyword. If you want to use these
22
+ commands, then you should bind them in ~hl-todo-mode-map~, e.g.:
23
+
24
+ #+begin_src emacs-lisp
25
+ (define-key hl-todo-mode-map (kbd "C-c p") 'hl-todo-previous)
26
+ (define-key hl-todo-mode-map (kbd "C-c n") 'hl-todo-next)
27
+ (define-key hl-todo-mode-map (kbd "C-c o") 'hl-todo-occur)
28
+ (define-key hl-todo-mode-map (kbd "C-c i") 'hl-todo-insert)
29
+ #+end_src
30
+
31
+ See [[https://www.emacswiki.org/emacs/FixmeMode][this list]] on the Emacswiki for other packages that implement
32
+ the same basic features, but which might also provide additional
33
+ features that you might like, but which I don't deem necessary.
34
+
35
+ See [[https://github.com/tarsius/hl-todo/wiki][FAQ and Common Issues]] if something isn't working as expected.
You can’t perform that action at this time.
0 commit comments