8000 hook not working with emacs · Issue #86 · Misterio77/flavours · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hook not working with emacs #86

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

Open
auralluring opened this issue Feb 7, 2024 · 1 comment
Open

hook not working with emacs #86

auralluring opened this issue Feb 7, 2024 · 1 comment

Comments

@auralluring
Copy link

i feel like i must be doing something wrong here, but i can't figure out what. i have a custom template i made that injects itself into an autothemer theme file. that part works perfectly, and emacs has no issues with the generated theme.

the problem is that the hook just... isn't working. here's its whole section in the config.toml file:

[[items]]
file = "~/.config/emacs/flavours-theme.el"
template = "emacs"
subtemplate = "custom"
start = ";; Start Flavours"
end = ";; End Flavours"
hook = "emacsclient -e '(my/load-theme)'"

i was having some minor problems with the emacs daemon having trouble starting yesterday, but it seems fine now. the thing that's tripping me up about this is that the same exact command works fine when i execute it manually in a terminal. and if i put a different command there - for example, to open a new terminal - it too does its job! i've also tried changing the shell to bash and even zsh - nothing.

i used to use pywal/wgptk, with a wrapper to execute a custom script afterwards. the same command was in there (i actually created the function for that purpose) and i had no problems with it, so i really don't get what's going wrong here.

@elfehr
Copy link
elfehr commented Nov 23, 2024

There is probably some problem with multiple nesting levels of quotes. Single quotes don't work either for me, but escaped double quotes do:

hook = "emacsclient --eval \"(base16-set-theme)\""

(I had the same symptoms with base16-universal-manager, but there the solution was to completely remove the quotes.)

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

2 participants
0