From 05b20d3443dc616dcbd8dffdd33c37044514f3a4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 28 Jan 2021 12:43:35 -0600 Subject: Add acdw/org-sync command --- config.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/config.org b/config.org index 8e3c056..82a9c9f 100644 --- a/config.org +++ b/config.org @@ -2395,6 +2395,23 @@ Emacs (or the [[https://chrome.google.com/webstore/detail/edit-with-emacs/ljobjl (add-hook 'after-init-hook #'edit-server-start) #+end_src +*** =git-sync= ~/org + +I don't know where else to put this, but it's just a little command to +run =git-sync= in =org-directory=. + +#+begin_src emacs-lisp :noweb-ref functions + (defun acdw/org-sync () + "Run git-sync in `org-directory'. + + Requires git-sync." + (interactive) + (async-shell-command + (format "git -C %s sync" (expand-file-name org-directory)))) + + (define-key acdw/leader (kbd "C-M-o") #'acdw/org-sync) +#+end_src + ** Linux (home) :PROPERTIES: :header-args: :noweb-ref linux-specific -- cgit 1.4.1-21-gabe81