GitXplorerGitXplorer
z

.emacs.d

public
3 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
cb1bd7af62f8a9af02532304f8b3ba0493087d81

update crystal VERSION snippet to include git hasah

zzw963 committed a month ago
Unverified
70026834f41ad8d4e189b22d7473f68fa0b2118c

systemd-mode open .timer file

zzw963 committed 2 months ago
Unverified
1d323f175787b3555f43a1081fece881ab37887f

update git-timemachine

zzw963 committed 2 months ago
Unverified
2ed4a0cd4e57975a230e403629bb46e759c9a441

Add spawn snippet binding

zzw963 committed 2 months ago
Unverified
21f5643410d49372195be05ccb47721292fef627

update

zzw963 committed 2 months ago
Unverified
5c1875491507bb0e091164246ee85ce568f939f3

fix use diff-hl_init.el

zzw963 committed 2 months ago

README

The README file for this repository.

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!