[emacs] [experimental] paredit-like commands for C-like languages
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Readme.org
cedit.el
screencast.gif

Readme.org

cedit.el

paredit風のコマンドでC系の言語を編集

paredit-like commands for c-like languages

Screencast

screencast.gif

Usage

Require this script

(require 'cedit)

then following commands are available.

cedit-forward-char
cedit-backward-char
cedit-beginning-of-statement
cedit-end-of-statement

cedit-down-block
cedit-up-block-forward
cedit-up-block-backward

cedit-slurp
cedit-wrap-brace
cedit-barf
cedit-splice-killing-backward
cedit-raise

Keybinds are not changed automatically.

paredit.el Integration

When paredit.el is found on your system, following commands are also available.

cedit-or-paredit-slurp
cedit-or-paredit-barf
cedit-or-paredit-splice-killing-backward
cedit-or-paredit-raise

They are “dwim” commands that call one of cedit-xxx or paredit-xxx.

Contribution

cedit is now in very beta stage. You should feel free to fix this, or even develop a better version.