From e85ab4a0823fde689261461dc5c3ddae49f83b27 Mon Sep 17 00:00:00 2001 From: michener Date: Mon, 30 Jan 2012 21:05:56 +0000 Subject: [PATCH] Google comments git-svn-id: http://photonzero.com/dotfiles/trunk@118 23f722f6-122a-0410-8cef-c75bd312dd78 --- .emacs.d/init.el | 3 +++ .vimrc | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index cb49bb1..224e9bc 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -157,3 +157,6 @@ ;; this doesn't work for revert, I don't know (add-hook 'after-revert-hook 'ztl-on-buffer-demodification) (add-hook 'first-change-hook 'ztl-on-buffer-modification) + +(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t) +(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) diff --git a/.vimrc b/.vimrc index a68b020..5efcf63 100644 --- a/.vimrc +++ b/.vimrc @@ -60,7 +60,7 @@ runtime macros/matchit.vim autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete autocmd FileType python set tags+=$HOME/.vim/tags/python.ctags "autocmd FileType python set omnifunc=pythoncomplete#Complete -autocmd FileType python call SuperTabSetCompletionType("") +"autocmd FileType python call SuperTabSetCompletionType("") let python_highlight_all = 1 let g:Tb_MaxSize=0 let g:Tb_MapCTabSwitchBufs = 1 @@ -269,6 +269,9 @@ if g:google != 0 " Run update_deps on the target for the current file. nmap bu :call UpdateDepsDwim() endif + " Configure a 'Comments' command to import CL code review comments into the + " quickfix buffer. + command! Comments cexpr system('git5 comments -q -u') endif if filereadable("/home/build/nonconf/google3/tools/tags/gtags.vim")