forked from colonelpanic/dotfiles
literate init in config.org
This commit is contained in:
parent
5fd4d5ad55
commit
5708686c35
2
.gitignore
vendored
2
.gitignore
vendored
@ -40,3 +40,5 @@ config/google-chrome
|
||||
/dotfiles/vim/bundle/*
|
||||
/dotfiles/wemo/cache
|
||||
gotools
|
||||
|
||||
dotfiles/emacs.d/config.el
|
@ -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
24
dotfiles/emacs.d/init.el
Normal 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:
|
Loading…
Reference in New Issue
Block a user