瀏覽代碼

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

Loading…
取消
儲存