Coder Social home page Coder Social logo

dotemacs's Introduction

dotemacs

Use a lightweight loader and Emacs builtin package manager( or git submodule, but deprecated) to organize packages.

include.el

include.el is a lightweight loader to organize and compile your .el files.

include

(include "dir/") loads every .el file in dir/ directory.

(include "dir/" '(el1 el2)) loads spefic files (el1.el, el2.el in this case) in dir/ directory

include compiles .el files to .elc if .el is new and loads .elc next time.

An use case:

;; .emacs
(include "init/")
(include "language/"
 '(
   "lang_programming"
   "lang_html"
   "lang_css"
   "lang_js"
   "lang_nodejs"
   "lang_coffee"
   ;; todo
   ;; "lang_python"
   ))
(include "plugins/")

include-packages (new)

(include-packages 'plugin-a 'plugin-b), will check packages listed and install the missed automatically.

include-path (for manually usage, deprecated)

(include-path "dir/") adds dir/ and it's subdirectories to load-path

In above case,

(include "language/" '("lang_programming")) loads file language/lang_programming.el(c).

Now in language/lang_programming.el, we add all language modes to load-path by adding this line

(include-path "language/lang_modes")
;; configuration for language modes

git submodule

To install a new package, use git submodule to download a copy and place it into the spefic directory we included, such as language/lang_modes:

git submodule add https://github.com/fxbois/web-mode.git language/lang_modes/web-mode

  • git submodule update to update packages.
  • cd [gitsubmodule], git pull origin master to update a package.
  • git submodule update --init --recursive to initiate and update all packages.

dotemacs's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

binaryoak

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.