Replace some custom TODO & friends highlighting with the hl-todo
package
This commit is contained in:
parent
82f496f195
commit
d6842eccad
3 changed files with 6 additions and 24 deletions
modules
|
@ -35,18 +35,14 @@
|
|||
(defun prelude-local-comment-auto-fill ()
|
||||
(set (make-local-variable 'comment-auto-fill-only-comments) t))
|
||||
|
||||
(defun prelude-font-lock-comment-annotations ()
|
||||
"Highlight a bunch of well known comment annotations.
|
||||
|
||||
This functions should be added to the hooks of major modes for programming."
|
||||
(font-lock-add-keywords
|
||||
nil '(("\\<\\(\\(FIX\\(ME\\)?\\|TODO\\|OPTIMIZE\\|HACK\\|REFACTOR\\):\\)"
|
||||
1 font-lock-warning-face t))))
|
||||
|
||||
;; show the name of the current function definition in the modeline
|
||||
(require 'which-func)
|
||||
(which-function-mode 1)
|
||||
|
||||
;; font-lock annotations like TODO in source code
|
||||
(require 'hl-todo)
|
||||
(global-hl-todo-mode 1)
|
||||
|
||||
;; in Emacs 24 programming major modes generally derive from a common
|
||||
;; mode named prog-mode; for others, we'll arrange for our mode
|
||||
;; defaults function to run prelude-prog-mode-hook directly. To
|
||||
|
@ -74,8 +70,7 @@ This functions should be added to the hooks of major modes for programming."
|
|||
(guru-mode +1))
|
||||
(smartparens-mode +1)
|
||||
(prelude-enable-whitespace)
|
||||
(prelude-local-comment-auto-fill)
|
||||
(prelude-font-lock-comment-annotations))
|
||||
(prelude-local-comment-auto-fill))
|
||||
|
||||
(setq prelude-prog-mode-hook 'prelude-prog-mode-defaults)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue