sync db
This commit is contained in:
parent
2f2ac74422
commit
f47acd20a3
25
org.el
25
org.el
|
@ -7,9 +7,13 @@
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(setq org-ref-bibliography-files '("~/org/references.bib")
|
(setq org-ref-bibliography-files '("~/org/references.bib")
|
||||||
|
org-cite-global-bibliography '("~/org/references.bib")
|
||||||
org-ref-default-bibliography "~/org/references.bib"
|
org-ref-default-bibliography "~/org/references.bib"
|
||||||
|
org-cite-export-processors '((t csl "~/.emacs.d/csl/ieee.csl"))
|
||||||
|
org-ref-default-citation-style "ieee"
|
||||||
org-ref-pdf-directory "~/org/"
|
org-ref-pdf-directory "~/org/"
|
||||||
org-ref-notes-directory "~/org/"))
|
org-ref-notes-directory "~/org/"
|
||||||
|
org-ref-csl-default-directory "~/.emacs.d/csl/"))
|
||||||
|
|
||||||
(use-package org-roam
|
(use-package org-roam
|
||||||
:after org
|
:after org
|
||||||
|
@ -185,10 +189,10 @@
|
||||||
|
|
||||||
;;; org publishes everything at once.
|
;;; org publishes everything at once.
|
||||||
("org"
|
("org"
|
||||||
:components ("org-site-root"
|
:components ("org-site-static"
|
||||||
"org-site-static"
|
|
||||||
"org-site-entries"
|
"org-site-entries"
|
||||||
"org-site-pages"
|
"org-site-pages"
|
||||||
|
"org-site-root"
|
||||||
"org-site-notes"
|
"org-site-notes"
|
||||||
"org-site-roam-static"
|
"org-site-roam-static"
|
||||||
"org-site-roam"))))
|
"org-site-roam"))))
|
||||||
|
@ -208,9 +212,24 @@
|
||||||
;;; publish all the orgs.
|
;;; publish all the orgs.
|
||||||
(global-set-key (kbd "C-c o")
|
(global-set-key (kbd "C-c o")
|
||||||
(lambda () (interactive)
|
(lambda () (interactive)
|
||||||
|
(org-roam-db-sync)
|
||||||
(org-publish-project "org" t)))
|
(org-publish-project "org" t)))
|
||||||
|
|
||||||
;;; upload the publish directory.
|
;;; upload the publish directory.
|
||||||
(global-set-key (kbd "C-c u")
|
(global-set-key (kbd "C-c u")
|
||||||
(lambda () (interactive)
|
(lambda () (interactive)
|
||||||
(shell-command "rsync --delete-after -auqz ~/org/publish/ web.metacircular.net:/srv/www/metacircular/")))
|
(shell-command "rsync --delete-after -auqz ~/org/publish/ web.metacircular.net:/srv/www/metacircular/")))
|
||||||
|
|
||||||
|
(use-package simple-httpd
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(setq httpd-root "~/org/publish") ; Set to your Org publish output directory
|
||||||
|
(setq httpd-port 4000)) ; Default port
|
||||||
|
|
||||||
|
(let ((*httpd-server-running* nil))
|
||||||
|
(defun httpd-toggle-server () (interactive)
|
||||||
|
(if *httpd-server-running*
|
||||||
|
(httpd-stop)
|
||||||
|
(http-start))
|
||||||
|
(setq *httpd-server-running* (not *httpd-server-running*))
|
||||||
|
(not *httpd-server-running*)))
|
||||||
|
|
Loading…
Reference in New Issue