Skip to content

Instantly share code, notes, and snippets.

@dmitrym0
Created April 18, 2019 18:05
Show Gist options
  • Save dmitrym0/e021a6aed24728dcf5af2a05579bdda4 to your computer and use it in GitHub Desktop.
Save dmitrym0/e021a6aed24728dcf5af2a05579bdda4 to your computer and use it in GitHub Desktop.
(defun make-orgcapture-frame ()
"Create a new frame and run org-capture."
(interactive)
(make-frame '((name . "remember") (width . 80) (height . 16)
(top . 400) (left . 300)
(font . "-apple-Monaco-medium-normal-normal-*-13-*-*-*-m-0-iso10646-1")
))
(select-frame-by-name "remember")
(raise-frame)
(delete-other-windows)
(org-capture)
)
@dmitrym0
Copy link
Author

(delete-other-windows) doesn't seem to do what I think it should do. The new frame is split with the current buffer and org-capture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment