literate init in config.org

This commit is contained in:
Ivan Malison 2016-06-06 11:57:27 -07:00
parent 5fd4d5ad55
commit 5708686c35
3 changed files with 30 additions and 2 deletions

2
.gitignore vendored
View File

@ -40,3 +40,5 @@ config/google-chrome
/dotfiles/vim/bundle/*
/dotfiles/wemo/cache
gotools
dotfiles/emacs.d/config.el

View File

@ -1,3 +1,4 @@
#+BEGIN_SRC emacs-lisp
;; -*- lexical-binding: t; -*-
;; =============================================================================
;; ___ _ __ ___ __ _ ___ ___
@ -2572,3 +2573,4 @@ items follow a style that is consistent with other prog-modes."
;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)
;; End:
#+END_SRC

24
dotfiles/emacs.d/init.el Normal file
View File

@ -0,0 +1,24 @@
(require 'package)
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
(defun ensure-packages-installed (packages)
(unless package-archive-contents
(package-refresh-contents))
(mapcar
(lambda (package)
(if (package-installed-p package)
package
(progn (message (format "Installing package %s." package))
(package-install package))))
packages))
(package-initialize)
(ensure-packages-installed '(org-plus-contrib))
(org-babel-load-file
(concat (file-name-directory load-file-name) "config.org"))
;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)
;; End: