summary refs log tree commit diff stats
path: root/config.org
diff options
context:
space:
mode:
authorCase Duckworth2021-01-28 12:43:35 -0600
committerCase Duckworth2021-01-28 12:43:35 -0600
commit05b20d3443dc616dcbd8dffdd33c37044514f3a4 (patch)
tree9294e7bc4644927236970208dfe2ec7655587f54 /config.org
parentChange Emacs Autostart code (diff)
downloademacs-05b20d3443dc616dcbd8dffdd33c37044514f3a4.tar.gz
emacs-05b20d3443dc616dcbd8dffdd33c37044514f3a4.zip
Add acdw/org-sync command
Diffstat (limited to 'config.org')
-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