GithubHelp home page GithubHelp logo

Comments (8)

Malabarba avatar Malabarba commented on August 15, 2024

Does eye browse have hooks? If so, it's just a matter of adding beacon-blink to something like eye-browse-after-change-configuration-hook.

If it doesn't have a hook like that then you can still use an advice.

from beacon.

JSpenced avatar JSpenced commented on August 15, 2024

I added in:

(add-hook 'eyebrowse-post-window-switch-hook (lambda () (interactive) (beacon-blink)))

but it doesn't seem to work. Is this the correct use of beacon-blink. Maybe some issue with the hook though.

from beacon.

Malabarba avatar Malabarba commented on August 15, 2024

Just doing (add-hook 'eyebrowse-post-window-switch-hook #'beacon-blink) should be enough.

If that doesn't work, it might be because eyebrowse still does some form of window/buffer management after running the hook. There are a few events that will cause beacon to abort blinking (such as changing buffer or window).

from beacon.

JSpenced avatar JSpenced commented on August 15, 2024

Yeah, I am not sure what is happening but that doesn't work. Even defining a function then calling (beacon-blink) doesn't work. Like shown below for example but beacon-blink still doesn't run:

(defun eyebrowse-switch-to-window-config-22 ()
  "Switch to window configuration 22."
  (interactive)
  (eyebrowse-switch-to-window-config 22)
  (beacon-blink))

from beacon.

Malabarba avatar Malabarba commented on August 15, 2024

What happens if you run the following code

(defun test-blinking ()
  (interactive)
  (display-buffer (car (last (buffer-list))))
  (beacon-blink))

and then call M-x test-blinking?

from beacon.

JSpenced avatar JSpenced commented on August 15, 2024

Yeah, that works fine! All the other functions of beacon-blink seem to work fine as well. Like on emacs gaining focus, etc...

from beacon.

Malabarba avatar Malabarba commented on August 15, 2024

I guess it's something specific to how (eyebrowse-switch-to-window-config 22) works then. It's hard to figure out without digging deep into the package code.

from beacon.

JSpenced avatar JSpenced commented on August 15, 2024

No worries, just thought if it was possible that would be great.

from beacon.

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.