Giter Site home page Giter Site logo

el-get-cli's Introduction

elget --- A command line interface for El-Get

elget is a command line interface for El-Get. You can install/update packages by running commands as you do M-x el-get-install or M-x el-get-update on Emacs. It also supports package version locks provided by el-get-lock.

Installation

cd ~ && git clone https://github.com/tarao/el-get-cli .el-get-cli
export PATH="$HOME/.el-get-cli/bin:$PATH"

Usage

To use the following commands, you need El-Get to be installed and initialized in your Emacs init file.

  • elget OPTIONS install [PACKAGES ...]

    Install specified packages. Without packages, it runs an ordinary install sequence according to instructions in your Emacs init file.

  • elget OPTIONS update [PACKAGES ...]

    Update specified packages to the latest versions of their remote source. Without packages, it updates all the installed packages.

To use the following commands, you need el-get-lock to be installed and initialized in your Emacs init file.

  • elget OPTIONS lock [PACKAGES ...]

    Lock specified packages. Without packages, it resets the lock status to lock the all installed packages.

  • elget OPTIONS unlock [PACKAGES ...]

    Unlock specified packages. Without packages, it resets the lock status to unlock the all installed packages.

  • elget OPTIONS checkout [PACKAGES ...]

    Checkout the locked versions of specified packages. Without packages, it checks out all the installed packages.

Options

  • -f <file>

    Specify an Emacs init file.

Environment variables

  • EMACS

    Specify the location of Emacs binary.

Tips: isolating your Emacs init file from the default directory

By -f option, you can specify an Emacs init file to initialize El-Get. This helps you to try elget with a local Emacs init file other than the default ~/.emacs.d/init.el but the El-Get package installation directory is still ~/.emacs.d/el-get by default.

To get the El-Get installation directory isolated from the default one, put the following code in your (local) Emacs init file (before the initialization of El-Get).

(when load-file-name
  (setq user-emacs-directory (file-name-directory load-file-name)))

This changes the user Emacs directory (~/.emacs.d by default) to the directory where the (local) Emacs init file is located so that El-Get will chooose the package directory under this directory. For example, if you (local) Emacs init file is ~/el-get-test/init.el, then the El-Get package directory will be ~/el-get-test/el-get.

Actually, setting user-emacs-directory at the beginning of the user Emacs file will maintain all the well-written Emacs Lisp packages that use the user Emacs directory. So you should always do this to make you init file portable.

To run your Emacs with the local Emacs init file, run the following command.

emacs -q -l YOUR-LOCAL-INIT-FILE.el

el-get-cli's People

Contributors

tarao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

el-get-cli's Issues

More commands

  • el-get
    • remove
    • self-update
    • list-packages
    • describe
    • find-recipe-file
  • el-get-lock
    • a command to show lock status

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.