[feat] update roam publish function
This commit is contained in:
parent
db66ef7dc1
commit
e080da4b94
2 changed files with 12 additions and 8 deletions
|
@ -150,10 +150,12 @@
|
|||
(org-roam-set-keyword "filetags" ":publish:")
|
||||
(save-buffer)
|
||||
(org-hugo-export-wim-to-md)
|
||||
(shell-command (concat "cd " org-hugo-base-dir
|
||||
(async-shell-command (concat
|
||||
"cd " org-hugo-base-dir
|
||||
" && " "git add ."
|
||||
" && " "git commit -m '[post] new post'"
|
||||
" && " "git push"))
|
||||
(if (yes-or-no-p "Push now?")
|
||||
(" && " "git push"))) "*Messages*")
|
||||
(message "publish nwe post!"))
|
||||
|
||||
(defun my/org-roam-creat-node ()
|
||||
|
|
|
@ -206,10 +206,12 @@
|
|||
(org-roam-set-keyword "filetags" ":publish:")
|
||||
(save-buffer)
|
||||
(org-hugo-export-wim-to-md)
|
||||
(shell-command (concat "cd " org-hugo-base-dir
|
||||
(async-shell-command (concat
|
||||
"cd " org-hugo-base-dir
|
||||
" && " "git add ."
|
||||
" && " "git commit -m '[post] new post'"
|
||||
" && " "git push"))
|
||||
(if (yes-or-no-p "Push now?")
|
||||
(" && " "git push"))) "*Messages*")
|
||||
(message "publish nwe post!"))
|
||||
|
||||
(defun my/org-roam-creat-node ()
|
||||
|
|
Loading…
Reference in a new issue