about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org17
1 files changed, 17 insertions, 0 deletions
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
2395 (add-hook 'after-init-hook #'edit-server-start) 2395 (add-hook 'after-init-hook #'edit-server-start)
2396#+end_src 2396#+end_src
2397 2397
2398*** =git-sync= ~/org
2399
2400I don't know where else to put this, but it's just a little command to
2401run =git-sync= in =org-directory=.
2402
2403#+begin_src emacs-lisp :noweb-ref functions
2404 (defun acdw/org-sync ()
2405 "Run git-sync in `org-directory'.
2406
2407 Requires git-sync."
2408 (interactive)
2409 (async-shell-command
2410 (format "git -C %s sync" (expand-file-name org-directory))))
2411
2412 (define-key acdw/leader (kbd "C-M-o") #'acdw/org-sync)
2413#+end_src
2414
2398** Linux (home) 2415** Linux (home)
2399:PROPERTIES: 2416:PROPERTIES:
2400:header-args: :noweb-ref linux-specific 2417:header-args: :noweb-ref linux-specific