init
This commit is contained in:
33
.zprezto/modules/emacs/README.md
Normal file
33
.zprezto/modules/emacs/README.md
Normal file
@@ -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
|
25
.zprezto/modules/emacs/init.zsh
Normal file
25
.zprezto/modules/emacs/init.zsh
Normal file
@@ -0,0 +1,25 @@
|
||||
#
|
||||
# Configures Emacs dependency management.
|
||||
#
|
||||
# Authors: Sebastian Wiesner <lunaryorn@gmail.com>
|
||||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
if [[ ! -d "$HOME/.cask" ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Prepend Cask bin directory.
|
||||
path=($HOME/.cask/bin $path)
|
||||
|
||||
# Load Carton completion
|
||||
source "$HOME/.cask/etc/cask_completion.zsh" 2> /dev/null
|
||||
|
||||
#
|
||||
# Aliases
|
||||
#
|
||||
|
||||
alias cai='cask install'
|
||||
alias cau='cask update'
|
||||
alias caI='cask init'
|
||||
alias cae='cask exec'
|
Reference in New Issue
Block a user