move publish and sync to node menu
This commit is contained in:
parent
3cd41d201f
commit
671383fcd4
33
org.el
33
org.el
|
@ -29,6 +29,25 @@
|
||||||
org-ref-notes-directory "~/org/"
|
org-ref-notes-directory "~/org/"
|
||||||
org-ref-csl-default-directory "~/.emacs.d/csl/"))
|
org-ref-csl-default-directory "~/.emacs.d/csl/"))
|
||||||
|
|
||||||
|
(defun metacircular-publish () (interactive)
|
||||||
|
(org-roam-db-sync)
|
||||||
|
(org-publish-project "org" t))
|
||||||
|
|
||||||
|
(defun metacircular-publish-2 () (interactive)
|
||||||
|
(org-roam-db-sync)
|
||||||
|
(org-publish-project "org"))
|
||||||
|
|
||||||
|
(defun metacircular-upload () (interactive)
|
||||||
|
(shell-command "rsync --delete-after -auqz ~/org/publish/ web.metacircular.net:/srv/www/metacircular/"))
|
||||||
|
|
||||||
|
(defun metacircular-deploy () (interactive)
|
||||||
|
(metacircular-publish)
|
||||||
|
(metacircular-upload))
|
||||||
|
|
||||||
|
(defun metacircular-deploy-2 () (interactive)
|
||||||
|
(metacircular-publish-2)
|
||||||
|
(metacircular-upload))
|
||||||
|
|
||||||
(use-package org-roam
|
(use-package org-roam
|
||||||
:after org
|
:after org
|
||||||
:custom
|
:custom
|
||||||
|
@ -61,6 +80,9 @@
|
||||||
("C-c n i" . org-roam-node-insert)
|
("C-c n i" . org-roam-node-insert)
|
||||||
("C-c n c" . org-roam-capture)
|
("C-c n c" . org-roam-capture)
|
||||||
("C-c n j" . org-roam-dailies-capture-today)
|
("C-c n j" . org-roam-dailies-capture-today)
|
||||||
|
("C-c n p" . metacircular-publish)
|
||||||
|
("C-c n P" . metacircular-publish-2)
|
||||||
|
("C-c n u" . metacircular-upload)
|
||||||
("C-c n w" . httpd-toggle-server))
|
("C-c n w" . httpd-toggle-server))
|
||||||
:config
|
:config
|
||||||
(setq org-roam-completion-everywhere t)
|
(setq org-roam-completion-everywhere t)
|
||||||
|
@ -223,14 +245,3 @@
|
||||||
(lambda () (interactive)
|
(lambda () (interactive)
|
||||||
(message "deleting org-timestamps")
|
(message "deleting org-timestamps")
|
||||||
(delete-directory (expand-file-name "~/.org-timestamps") t)))
|
(delete-directory (expand-file-name "~/.org-timestamps") t)))
|
||||||
|
|
||||||
;;; publish all the orgs.
|
|
||||||
(global-set-key (kbd "C-c o")
|
|
||||||
(lambda () (interactive)
|
|
||||||
(org-roam-db-sync)
|
|
||||||
(org-publish-project "org" t)))
|
|
||||||
|
|
||||||
;;; upload the publish directory.
|
|
||||||
(global-set-key (kbd "C-c u")
|
|
||||||
(lambda () (interactive)
|
|
||||||
(shell-command "rsync --delete-after -auqz ~/org/publish/ web.metacircular.net:/srv/www/metacircular/")))
|
|
||||||
|
|
Loading…
Reference in New Issue