浏览代码

Syntax highlight TODO, FIXEME, BUG and XXX

master
Josh Wolfe 3 年前
父节点
当前提交
270fddd15b
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9
    0
      emacs/.emacs.d/README.org

+ 9
- 0
emacs/.emacs.d/README.org 查看文件

@@ -436,6 +436,15 @@ them and maps them to all the modes in [[Highlight Escapes Modes][=wolfe/highlig
wolfe/highlight-escapes-mode-list)
#+END_SRC

*** Highlight Todo, Fixme & Bug

#+BEGIN_SRC emacs-lisp :tangle yes
(add-hook 'prog-mode-hook
(lambda ()
(font-lock-add-keywords nil
'(("\\<\\(FIXME\\|TODO\\|BUG\\|XXX\\):" 1 font-lock-warning-face t)))))
#+END_SRC

** Personal Defaults

Nothing to crazy here just the type of behaviour I personally

正在加载...
取消
保存