From 2baa4dce0c584b719ddd31b578714567f2b7cfa1 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Sun, 3 Feb 2013 10:15:17 +0100 Subject: [PATCH] Add Emacs module Enables Emacs dependency management with Carton. --- modules/emacs/README.md | 33 +++++++++++++++++++++++++++++++++ modules/emacs/init.zsh | 15 +++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 modules/emacs/README.md create mode 100644 modules/emacs/init.zsh diff --git a/modules/emacs/README.md b/modules/emacs/README.md new file mode 100644 index 0000000..fa9a514 --- /dev/null +++ b/modules/emacs/README.md @@ -0,0 +1,33 @@ +Emacs +===== + +Enables Emacs dependency management. + +Dependency management +--------------------- + +[Carton][1] installs and manages Emacs packages for Emacs package development +and Emacs configuration. + +This module prepends the Carton directory to the path variable to enable the +execution of `carton`. + +Aliases +------- + +### Carton + + - `cai` installs dependencies. + - `cau` updates dependencies. + - `caI` initializes the current directory for dependency management. + - `cae` executes a command which correct dependencies. + +Authors +------- + +*The authors of this module should be contacted via the [issue tracker][2].* + + - [Sebastian Wiesner](https://github.com/lunaryorn) + +[1]: https://github.com/rejeep/carton +[2]: https://github.com/sorin-ionescu/prezto/issues diff --git a/modules/emacs/init.zsh b/modules/emacs/init.zsh new file mode 100644 index 0000000..c24625d --- /dev/null +++ b/modules/emacs/init.zsh @@ -0,0 +1,15 @@ +# +# Configures Emacs dependency management. +# +# Authors: Sebastian Wiesner +# + +# Enable Carton +if [[ -d "$HOME/.carton" ]]; then + path=($HOME/.carton/bin $path) + + alias cai='carton install' + alias cau='carton update' + alias caI='carton init' + alias cae='carton exec' +fi