Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.85 KB

readme.md

File metadata and controls

60 lines (45 loc) · 1.85 KB

Sqitch for Emacs

This package provides two modes for interacting with sqitch projects.

Installation

Ensure the files are on your load path, and require the modes:

(add-to-list 'load-path "/path/to/sqitch-for-emacs")
(require 'sqitch-plan-mode)
(require 'sqitch-mode)

Alternatively, if you favor el-get, you can use this recipe:

(:name sqitch
       :description "Emacs modes for interacting with Sqitch projects"
       :type github
       :pkgname "christophermaier/sqitch-for-emacs")

The Modes

sqitch-mode

This is a minor mode for Sqitch deploy, verify, and revert scripts. It allows you to easily jump between the different scripts for a given changeset, as well as jump to the appropriate sqitch.plan file.

Keybinding Description
C-c C-d Jump to corresponding "deploy" script
C-c C-v Jump to corresponding "verify" script
C-c C-r Jump to corresponding "revert" script
C-c C-t Jump to corresponding "test" script
C-c C-p Jump to sqitch.plan file

sqitch-plan-mode

This is a major mode for sqitch.plan files. With point on a changeset label (either at the beginning of a line or in a dependency list), it allows you to jump directly to the deploy, verify, and revert scripts for that changeset.

Keybinding Description
C-c C-d Jump to "deploy" script for changeset at point
C-c C-v Jump to "verify" script for changeset at point
C-c C-r Jump to "revert" script for changeset at point
C-c C-t Jump to "test" script for changeset at point

TODO

  • Make changeset detection more robust; currently does not recognize tagged changesets as such.