textmate-goto-file is faster than eproject-find-file as the former caches the file list, hence I've switched back to mainly using textmate-mode for quickly changing file, but still got eproject for other things

This commit is contained in:
2011-12-07 23:14:59 +00:00
parent 705f3a479d
commit 8945087b4e
2 changed files with 11 additions and 4 deletions

View File

@@ -40,14 +40,21 @@
;; eproject related keybindings
(when (require 'eproject nil 'noerror)
(global-set-key (kbd "C-c C-f") 'eproject-find-file)
(global-set-key (kbd "C-x C-t") 'eproject-find-file))
(global-set-key (kbd "C-c C-b") 'eproject-ibuffer)
(global-set-key (kbd "C-x p b") 'eproject-ibuffer)
(global-set-key (kbd "C-x p t") 'eproject-todo)
(global-set-key (kbd "C-x p f") 'eproject-find-file)
(global-set-key (kbd "C-x p k") 'eproject-kill-project-buffers)
(global-set-key (kbd "C-x p o") 'eproject-open-all-project-files))
;; Textmate-mode related keybindings
(when (require 'textmate nil 'noerror)
(global-set-key (kbd "C-x C-t") 'textmate-goto-file)
(global-set-key (kbd "C-c C-t") 'textmate-goto-symbol)
(global-set-key (kbd "M-p") 'textmate-column-up)
(global-set-key (kbd "M-n") 'textmate-column-down))
;; Flyspell correct previous word
(when (require 'flyspell nil 'noerror)
(global-set-key (kbd "s-.") 'flyspell-correct-word-before-point))

View File

@@ -32,9 +32,9 @@
(define-key ruby-mode-map
(kbd "s-r") 'ruby-compilation-this-buffer)
(define-key ruby-mode-map
(kbd "C-x t") 'eproject-find-file)
(kbd "C-x t") 'textmate-goto-file)
(define-key ruby-mode-map
(kbd "C-x C-t") 'eproject-find-file)
(kbd "C-x C-t") 'textmate-goto-file)
(define-key ruby-mode-map
(kbd "C-c C-l") 'goto-line)
(define-key ruby-mode-map