Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame visibility on top #46

Closed
fleimgruber opened this issue Feb 11, 2018 · 8 comments
Closed

Frame visibility on top #46

fleimgruber opened this issue Feb 11, 2018 · 8 comments

Comments

@fleimgruber
Copy link

The Emacs capture frame opens but is hidden by the browser (Firefox) window. I am using macOS so went with the Applescript handler. Is there a way to display the capture frame on top of the other windows? Or switch to the frame directly?

@dangom
Copy link

dangom commented Apr 7, 2018

I have the same problem, but I don't think this has to do with org-capture-extension.
If I don't (require 'org-protocol), for example, then the Emacs frame will come to the front.

@dangom
Copy link

dangom commented Apr 7, 2018

I couldn't work around the issue so I just hacked away with Hammerspoon.

Add the following to your init.lua:

function emacsclientWatcher(appName, eventType, appObject)
  if (eventType == hs.application.watcher.activated) then
    if (appName == "Emacsclient") then
      -- Bring Emacs to Front
      hs.osascript.applescript('tell application "Emacs" to activate')
    end
  end
end
appWatcher = hs.application.watcher.new(emacsclientWatcher)
appWatcher:start()

@sprig
Copy link
Owner

sprig commented Jun 18, 2018

Nice workaround @dangom, thanks!
@fleimgruber Did that work for you? If not, could you be more specific regarding which Applescript handler you are referring to?

@fleimgruber
Copy link
Author

I ended up doing the capture in Org mode directly, so did not try this again. Feel free to close if the workaround is good enough for you

@sprig
Copy link
Owner

sprig commented Jun 19, 2018 via email

@fleimgruber
Copy link
Author

@sprig
Copy link
Owner

sprig commented Jun 19, 2018 via email

@fleimgruber
Copy link
Author

fleimgruber commented Jun 19, 2018

Yes, it was the lowest common denominator across reading RSS, emails and browser.

@sprig sprig closed this as completed Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants