used more use package

This commit is contained in:
Grant Hunter 2017-03-22 19:41:28 -06:00
parent 556e0783ce
commit 13b670b72d

View File

@ -9,10 +9,29 @@
(package-refresh-contents) (package-refresh-contents)
(package-install 'use-package)) (package-install 'use-package))
(use-package async
:config
(defun my/init-hook ()
"If the current buffer is 'emacs-init.org' the code-blocks
are tangled."
(when (equal (buffer-file-name) my-org-file)
(async-start
`(lambda ()
(require 'org)
(org-babel-tangle-file ,my-org-file))
(lambda (result)
(message "Tangled file compiled.")))))
(add-hook 'after-save-hook 'my/init-hook))
(autoload 'dired-async-mode "dired-async.el" nil t) (use-package dired-async
:after async
:config
(dired-async-mode 1) (dired-async-mode 1)
(async-bytecomp-package-mode 1) (async-bytecomp-package-mode 1)
)
;;add ternjs to emacs ;;add ternjs to emacs
(add-to-list 'load-path "~/Development/util/tern/emacs/") (add-to-list 'load-path "~/Development/util/tern/emacs/")