fixing emacs stuff

git-svn-id: http://photonzero.com/dotfiles/trunk@57 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
michener 2010-08-13 00:51:44 +00:00
parent 10e42d54e2
commit ff2cfcaaaf
3 changed files with 11 additions and 3 deletions

View file

@ -55,6 +55,7 @@
(vimpulse-map "gn" 'tabbar-forward-tab)
(vimpulse-map "gp" 'tabbar-backward-tab)
(vimpulse-map "gw" 'vimpulse-search-forward-for-symbol-at-point)
(vimpulse-map "gK" 'kill-buffer-and-window)
;(define-key viper-insert-global-user-map "\C-d" 'delete-char))
(add-hook 'window-setup-hook 'delete-other-windows)
@ -83,4 +84,11 @@
(color-theme-barak)
;
;(defun my-emacs-startup-hook () (my-close-scratch)) (add-hook 'emacs-startup-hook 'my-emacs-startup-hook)
(defadvice viper-maybe-checkout (around viper-svn-checkin-fix activate)
"Advise viper-maybe-checkout to ignore svn files."
(let ((file (expand-file-name (buffer-file-name buf))))
(when (and (featurep 'vc-hooks)
(not (memq (vc-backend file) '(nil SVN))))
ad-do-it)))