Automatic

This commit is contained in:
Andrea Ciceri 2020-09-29 00:35:27 +02:00
parent 3b9a52afbe
commit db2fbe8522
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654

View file

@ -564,7 +564,10 @@ automatically committed and pushed on a remote repository.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-journal (use-package org-journal
:init (progn :init (progn
(add-hook 'after-save-hook (lambda () (async-shell-command "git add * && git commit -m 'Automatic' && git push origin master"))) (add-hook 'after-save-hook
(lambda ()
(async-shell-command "git add * && git commit -m 'Automatic' && git push origin master"))
nil 'make-it-local))
;; Change default prefix key; needs to be set before loading org-journal ;; Change default prefix key; needs to be set before loading org-journal
(setq org-journal-prefix-key "C-x j")) (setq org-journal-prefix-key "C-x j"))
:config :config