mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-23 14:03:44 -05:00
@@ -18,6 +18,7 @@
|
||||
(cur-buffer (current-buffer))
|
||||
(formatted-buffer (get-buffer-create " *apheleia-formatted*"))
|
||||
(indent 0))
|
||||
(unwind-protect
|
||||
(with-current-buffer formatted-buffer
|
||||
(erase-buffer)
|
||||
(unless (featurep :system 'windows)
|
||||
@@ -55,7 +56,9 @@
|
||||
(save-excursion
|
||||
(insert-buffer-substring-no-properties formatted-buffer)
|
||||
(when callback (funcall callback)))
|
||||
(kill-buffer formatted-buffer)))))))
|
||||
(kill-buffer formatted-buffer)))))
|
||||
(when (doom-region-active-p)
|
||||
(setq deactivate-mark t)))))
|
||||
|
||||
|
||||
;;
|
||||
|
Reference in New Issue
Block a user