mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 12:21:20 +00:00
Activate GAC when closing emacs
This commit is contained in:
parent
fb49f76ccd
commit
85a2584ed9
1 changed files with 11 additions and 0 deletions
|
|
@ -167,6 +167,17 @@
|
|||
:before-while
|
||||
#'gac-debounce-again-if-magit-in-progress)
|
||||
|
||||
(defun gac-activate-all-timers (&rest _)
|
||||
(interactive)
|
||||
(dolist (k (hash-table-keys gac--debounce-timers))
|
||||
(let ((timer (gethash k gac--debounce-timers)))
|
||||
(setf (timer--function timer) #'gac--after-save)
|
||||
(timer-event-handler timer))
|
||||
(remhash k gac--debounce-timers)))
|
||||
|
||||
(add-hook 'kill-emacs-hook
|
||||
'gac-activate-all-timers)
|
||||
|
||||
;; (add-hook 'gaff/after-merge-hook
|
||||
;; (lambda ()
|
||||
;; (org-id-update-id-locations
|
||||
|
|
|
|||
Loading…
Reference in a new issue