Skip to content

Commit

Permalink
Merged pull request magit#183 from alanfalloon/master.
Browse files Browse the repository at this point in the history
Add autoload and docstring to rebase-mode
  • Loading branch information
sigma committed Apr 28, 2011
2 parents 6de5fbc + 70794e2 commit c5883a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rebase-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ server connection)."
(text (apply 'buffer-substring region)))
(apply 'kill-region region))))

;;;###autoload
(defun rebase-mode ()
"Major mode for editing of a git rebase file
Rebase files are generated when you run 'git rebase -i' or run `magit-interactive-rebase'"

(interactive)
(kill-all-local-variables)

Expand All @@ -166,6 +171,7 @@ server connection)."
(setq buffer-read-only t)
(setq mode-name "rebase-mode" major-mode 'rebase-mode))

;;;###autoload
(add-to-list 'auto-mode-alist
'("git-rebase-todo" . rebase-mode))

Expand Down

0 comments on commit c5883a0

Please sign in to comment.