Focus org-capture frame on MacOS

This commit is contained in:
Henrik Lissner 2019-08-29 18:45:20 -04:00
parent 21883d9700
commit 9bbc77c2c7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -40,6 +40,7 @@ you're done. This can be called from an external shell script."
(frame (if (+org-capture-frame-p)
(selected-frame)
(make-frame +org-capture-frame-parameters))))
(select-frame-set-input-focus frame) ; fix MacOS not focusing new frames
(with-selected-frame frame
(require 'org-capture)
(condition-case ex