From f79338792a1a01b7789eebe76652a0fba8436a2b Mon Sep 17 00:00:00 2001 From: Geoffrey Grosenbach Date: Sat, 30 Jan 2010 20:29:58 -0800 Subject: [PATCH] Magit key shortcut for org-mode, Capfile highlighting --- starter-kit-ruby.el | 2 ++ topfunky.el | 2 ++ 2 files changed, 4 insertions(+) diff --git a/starter-kit-ruby.el b/starter-kit-ruby.el index add42e3b73..9b9aa1548f 100644 --- a/starter-kit-ruby.el +++ b/starter-kit-ruby.el @@ -15,6 +15,8 @@ ;; Rake files are ruby, too. (add-to-list 'auto-mode-alist '("\\.rake$" . ruby-mode)) (add-to-list 'auto-mode-alist '("Rakefile$" . ruby-mode)) +(add-to-list 'auto-mode-alist '("Gemfile$" . ruby-mode)) +(add-to-list 'auto-mode-alist '("Capfile$" . ruby-mode)) ;; We never want to edit Rubinius bytecode (add-to-list 'completion-ignored-extensions ".rbc") diff --git a/topfunky.el b/topfunky.el index 6152388632..2daf4c5bec 100644 --- a/topfunky.el +++ b/topfunky.el @@ -173,12 +173,14 @@ ;; org-mode (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) +;; Override (add-hook 'org-mode-hook (lambda() (local-set-key [(control meta return)] 'org-insert-heading) (local-set-key [(control shift left)] 'previous-buffer) (local-set-key [(control shift right)] 'next-buffer) (local-set-key [(meta shift right)] 'ido-switch-buffer) + (local-set-key [(meta shift left)] 'magit-status) ))