used more use package
This commit is contained in:
parent
556e0783ce
commit
13b670b72d
@ -9,10 +9,29 @@
|
||||
(package-refresh-contents)
|
||||
(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))
|
||||
|
||||
(use-package dired-async
|
||||
:after async
|
||||
:config
|
||||
(dired-async-mode 1)
|
||||
(async-bytecomp-package-mode 1)
|
||||
)
|
||||
|
||||
|
||||
|
||||
(autoload 'dired-async-mode "dired-async.el" nil t)
|
||||
(dired-async-mode 1)
|
||||
(async-bytecomp-package-mode 1)
|
||||
|
||||
;;add ternjs to emacs
|
||||
(add-to-list 'load-path "~/Development/util/tern/emacs/")
|
||||
|
Loading…
x
Reference in New Issue
Block a user