Giter VIP home page Giter VIP logo

Comments (9)

Fuco1 avatar Fuco1 commented on June 14, 2024 2

That's a good idea, I'll finally become famous! 😍

from emacs-anywhere.

Fuco1 avatar Fuco1 commented on June 14, 2024 1

Oh, thanks! 😊

I think a start would be to define a hook variable and add a call to that (using run-hook-with-args) in the progn you pass to emacsclient to execute.

Next step would be to somehow bake the window title in as the argument. This could probably be done by interpolating it as a constant in the bash script.

from emacs-anywhere.

Fuco1 avatar Fuco1 commented on June 14, 2024 1

I think this can now be closed @zachcurry ? Awesome work in #40!

from emacs-anywhere.

zachcurry avatar zachcurry commented on June 14, 2024

Let me start by saying that I'm a big fan of your work @Fuco1 ! You have added a lot of value to what I get out of Emacs!

Just to give some quick context, this is my first Gtihub repo and my skills with bash, elisp, and Emacs are elementary at best. I could really use the guidance of someone like yourself.

I agree that it would be cool to have some logic/config to set the major mode. I've never considered looking at the window titles but it sounds like a great idea! I will defer to your judgement on how this should be achieved.

Thanks @Fuco1 !

from emacs-anywhere.

zachcurry avatar zachcurry commented on June 14, 2024

Your advice was very helpful @Fuco1 !. I've got this working in OS X and it's pretty sweet! I'm really glad you thought of this feature!

At the moment I'm passing both the application name and window title to the hook functions since I've found the window title can be just about anything depending on the context and the application. Let me know if you have any concerns about this or if this is not what you'd had in mind.

I'll switch over to Linux and try to get that working as soon as I can. I'll start by checking out xwininfo as you suggested.

from emacs-anywhere.

Fuco1 avatar Fuco1 commented on June 14, 2024

@zachcurry Very cool! You can open a pull request or push a branch if you have any troubles so I can review it, I'd be more than happy to!

from emacs-anywhere.

zachcurry avatar zachcurry commented on June 14, 2024

@Fuco1 I'm pushing and making a PR right now. Any help will be greatly appreciated! I know I don't know anything about bash or Emacs Lisp, so don't hesitate to school me on this stuff! If you want, feel free to push to this project at will; no need to run it by me.

from emacs-anywhere.

zachcurry avatar zachcurry commented on June 14, 2024

@Fuco1 I can't thank you enough for suggesting this feature and acting as my remote code sensei in #40. Epic contribution my friend!

from emacs-anywhere.

zachcurry avatar zachcurry commented on June 14, 2024

Also, I'm thinking about adding an achievements section to the README (like spacemacs has). I hope you don't mind if I put this in there as my all time favorite feature request 😄

from emacs-anywhere.

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.