Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf.d
external
wip
.gitattributes
.gitignore
.projectile
README.org
init.el

README.org

Emacs chaning my life.

About

λ‚΄ ~/emacs.d/ μ„€μ • 파일 관리.

Table of Contents

init.el

Init File

이λ§₯μŠ€λŠ” ~/.emacs, ~/.emacs.el, ~/.emacs.d/init.el 을 처음으둜 μ½λŠ”λ‹€. λ‚˜λŠ” ~/emacs.d/ λ₯Ό 버전관리 ν•˜κ³  μžˆμœΌλ―€λ‘œ, ~/.emacs.d/init.el 이 처음 λ‘œλ“œ λ˜λŠ” 파일이 λœλ‹€. ν•˜μ§€λ§Œ, λ‚˜λŠ” .el 파일이 μ•„λ‹Œ .org 파일둜 이λ§₯슀의 μ„€μ • νŒŒμΌμ„ κ΄€λ¦¬ν•˜κ³ μž ν•œλ‹€. λ‹€μŒ μ½”λ“œ λΈ”λŸ­μ€, λ‹¨μˆœνžˆ README.org λ₯Ό org-babel-load-file ν•¨μˆ˜λ‘œ λΆˆλŸ¬μ˜€λŠ” μ½”λ“œλΈ”λŸ­μ΄λ©°, org-babel-tangle ν•¨μˆ˜λ₯Ό 톡해 init.el 파일이 λœλ‹€.

org-babel-tangleC-c C-v C-t
;; ===== auto-generated from README.org===
;; WARN Don't Modify this file directly.

(org-babel-load-file "~/.emacs.d/README.org")

README.el

basic setup

(defalias 'yes-or-no-p 'y-or-n-p)
(setq make-backup-files nil)
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file 'noerror)
(setq create-lockfiles nil)

package

(require 'package)
;;; officiral - melpa
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/") t)
;; mirror - melpa
;;(add-to-list 'package-archives '("melpa" . "http://www.mirrorservice.org/sites/melpa.org/packages/") t)
;;(add-to-list 'package-archives '("melpa-stable" . "http://www.mirrorservice.org/sites/stable.melpa.org/packages/") t)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
(package-initialize)

use-package

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(eval-when-compile
  (require 'use-package))
(require 'bind-key)

init-babel

(use-package quelpa
  :ensure t)

(use-package quelpa-use-package
  :ensure t)

(use-package init-loader
  :ensure t)

(use-package init-babel
  :quelpa
  (init-babel :fetcher github :repo "netpyoung/init-babel")

  :config
  (setq init-loader-byte-compile t)
  (defun update-docs ()
    (interactive)
    (init-babel:export-to-html
     "~/.emacs.d/conf.d"
     "~/.emacs.d/docs/"
     "README.org"))
  (init-babel:initialize "~/.emacs.d/conf.d/" "~/.emacs.d/conf.d/.tangle/"))

Ref

You can’t perform that action at this time.