Giter Site home page Giter Site logo

jgarte / .emacs.d-6 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zw963/.emacs.d

0.0 1.0 0.0 36.09 MB

My own .emacs.d

Shell 0.07% Ruby 0.13% C++ 0.01% Scheme 0.08% Python 6.09% C 0.44% Emacs Lisp 92.92% Objective-C 0.01% Rust 0.11% PowerShell 0.01% CSS 0.01% Makefile 0.02% CMake 0.01% Dockerfile 0.01% YASnippet 0.12%

.emacs.d-6's Introduction

How to use it?

Following is steps to use those packages.

  1. Clone this project into a folder in your's $HOME, e.g. ~/Dropbox/common/.emacs.d
$: git clone https://github.com/zw963/.emacs.d ~/Dropbox/common/.emacs.d

The entry is .emacs in this project root folder, but where all the magic begins should be ~/.emacs. You need add following code into ~/.emacs to let all packages start to work.

;;; .emacs --- Where all the magic begins

;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
;; (package-initialize)

(defun relative-load (file-relative-path)
  (let ((absolute-path (expand-file-name
                        file-relative-path
                        (file-name-directory (or load-file-name buffer-file-name)))))
    (when (file-exists-p absolute-path) (load absolute-path))))

;; Emacs 默认只是在 shell, vterm, shell, term 下面设定这个环境变量.
;; 这里全局增加这个环境变量.
(setenv "INSIDE_EMACS" "true")

(relative-load "Dropbox/common/.emacs.d/set_load_path.el")
(relative-load "Dropbox/common/.emacs.d/early-init.el")

philosophy

  1. all *.els in project root folder consider as users common(non-package specified) self-defined config.

  2. all required packages live in plugins/ folder, which was predownloaded manually(not use ELPA). almost all package live with a individual config file, e.g. assume one package named some-package, it should exists a some-package_init.el in same package folder, you can enable/disable those packages one by one with in init.el. current, there exists 120+ packages in plugins folder.

  3. autoload_plugins/ is some packages which not be used daily, so, those packages is set to autoloadable in autoloads.el.

  4. Run ./update_elc was used for update all packages elc files, it only need to be run when add a new package, should only works on linux.

Filename still not well organized yet, need improve, but anyway, it works!

.emacs.d-6's People

Contributors

zw963 avatar

Watchers

 avatar

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.