Add shortcut function to call sync-git

This commit is contained in:
Evie Litherland-Smith 2024-10-28 08:56:04 +00:00
parent c2bf3dfa4d
commit ebdd268882

View file

@ -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."