GithubHelp home page GithubHelp logo

Comments (5)

colonelpanic8 avatar colonelpanic8 commented on May 27, 2024

You would probably want to add a osascript -e 'tell application "Emacs" to activate' to the emacs client command to make the focus go to emacs. The problem with this is that that command wont work for people using terminal or X11 emacs.

from alert.

colonelpanic8 avatar colonelpanic8 commented on May 27, 2024

@jwiegley Any thoughts about this? If you don't think it would be appropriate to add this to alert.el, I totally understand.

from alert.

jwiegley avatar jwiegley commented on May 27, 2024

I think this falls into the realm of "better offered as a separate add-on package". I'd be happy to link to it from a "contrib" section in the README.

from alert.

colonelpanic8 avatar colonelpanic8 commented on May 27, 2024

Yeah, that probably makes the most sense. My only concern on that front --and the whole reason I brought this up here instead of doing that to begin with-- is that doing so either requires the definition of a new notification type or a patch to alert-notifier-notify. What if the only thing added to alert was a function variable that is evaluated in alert-notifier-notify to determine the value passed to the '-execute' flag (when defined). The default behavior would still be to not pass the -execute flag, as a value would be passed only when the function variable is non-nil.

If you don't think that this modification is a good idea, do you think it would be better to define a completely new notification type or to redefine alert-notifier-notify?

from alert.

jwiegley avatar jwiegley commented on May 27, 2024

I certainly want alert.el to be easy for others to write extension packages for it, so if you need that sort of change to get your module written, I'd happily accept it.

from alert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.