Update .emacs.d/README.org
This commit is contained in:
parent
a7a537e241
commit
c3ec12e7b1
1 changed files with 8 additions and 1 deletions
|
@ -46,9 +46,16 @@ Here, we're initializing MELPA, as well as package.el and use-package.
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** vc-use-package
|
** vc-use-package
|
||||||
vc-use-package integrates package-vc-install, which allows installing packages from git repositories, into use-package. It won't be needed from Emacs 30, as it will integrate natively (hence the condition).
|
vc-use-package integrates package-vc-install, which allows installing packages from git repositories, into use-package. It won't be needed from Emacs 30, as it will integrate natively.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
(if (< emacs-major-version 30)
|
||||||
|
(unless (package-installed-p 'vc-use-package)
|
||||||
|
(package-vc-install "https://github.com/slotThe/vc-use-package"))
|
||||||
|
(require 'vc-use-package))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Automatically tangle on save
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(add-hook 'org-mode-hook
|
(add-hook 'org-mode-hook
|
||||||
(lambda () (add-hook 'after-save-hook #'org-babel-tangle
|
(lambda () (add-hook 'after-save-hook #'org-babel-tangle
|
||||||
|
|
Loading…
Reference in a new issue