Mercurial > hg > dotemacs
changeset 5:317bd5a17fc2
Highlight TODO: in C and C++ modes, comment out ipython for now
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Thu, 04 Feb 2010 13:56:00 -0600 |
parents | 2194965b6dab |
children | a4eb45be5dbc |
files | dotemacs |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dotemacs +++ b/dotemacs @@ -63,7 +63,7 @@ (defalias 'perl-mode 'cperl-mode) ;; Commented out for lenny due to a bug with ipython/python mode -(require 'ipython) +;(require 'ipython) (server-start) @@ -110,7 +110,7 @@ ;; Separate IO (setq gdb-separate-io t) -;; Highlight "FIXME:" +;; Highlight "FIXME: and TODO:" (font-lock-add-keywords 'c-mode '(("\\<\\(FIXME\\)" 1 font-lock-warning-face t))) @@ -119,6 +119,14 @@ 'c++-mode '(("\\<\\(FIXME\\):" 1 font-lock-warning-face t))) +(font-lock-add-keywords + 'c-mode + '(("\\<\\(TODO\\):" 1 font-lock-warning-face t))) + +(font-lock-add-keywords + 'c++-mode + '(("\\<\\(TODO\\):" 1 font-lock-warning-face t))) + ;; Let auto-fill end lines with a full stop. (setq sentence-end-double-space nil)