Skip to content

Commit

Permalink
Magit key shortcut for org-mode, Capfile highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
topfunky committed Jan 31, 2010
1 parent 9e5ce45 commit f793387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions starter-kit-ruby.el
Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions topfunky.el
Expand Up @@ -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)
))


Expand Down

0 comments on commit f793387

Please sign in to comment.