From ebdd2688827c76ee801dabc48bab8911faa70df2 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 28 Oct 2024 08:56:04 +0000 Subject: [PATCH] Add shortcut function to call sync-git --- README.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.org b/README.org index 1a147a3..588041f 100644 --- a/README.org +++ b/README.org @@ -1621,6 +1621,13 @@ Configure email with iCalendar event support, to integrate with ;; Scratch buffer shortcut (keymap-global-set "C-c w x" #'scratch-buffer) +;; Shortcut to call `sync-git' +(when (executable-find "sync-git" nil) + (defun my/sync-git () + "Call `sync-git' shell script" + (interactive) + (shell-command "sync-git"))) + ;; Config file shortcut (defun my/open-config-file () "Open Emacs config file."