Comments (9)
That's a good idea, I'll finally become famous! 😍
from emacs-anywhere.
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.
I think this can now be closed @zachcurry ? Awesome work in #40!
from emacs-anywhere.
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.
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.
@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.
@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.
@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.
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)
- Do not hardcore installation directory HOT 3
- Does not work with the freecodecamp editor HOT 2
- Does this work on mojave? HOT 4
- Question: How to launch under cursor? HOT 6
- Populate the buffer with the current contents of the textarea HOT 6
- More robust pasting HOT 1
- How to define my keyborad shortcut HOT 1
- README should be more clear about where to put configuration
- Paste not working when there is a physical key pressed HOT 1
- Mac
- Macos HOT 1
- Would you recommend an especific keybinding (shortcut) on macOS?
- Is emacs-anywhere compatible with tiling window managers?
- Is it really necessary to use `C-x 5 0`? Why can't I use classic `C-x C-x` to quit? HOT 2
- Please, package this for NixOS
- Is it possible to configure emacs-anywhere with Karabiner-elements instead of setting a hotkey via the GUI SystemPreferences/keyboard/shortcuts/services/general?
- Feature request: save content of frame on kill ring before it is deletion
- Feature request: bring content already written on the text box to the frame created by Emacs Anywhere
- Thank you
- trouble on ubuntu 22.04
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-anywhere.