From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: emacsclient question: tty-setup-hook and X specific config
Date: Fri, 23 Nov 2018 10:53:13 +0200 [thread overview]
Message-ID: <8336rsgop2.fsf@gnu.org> (raw)
In-Reply-To: <20181122220050.nj75ntfw245x5zu5@gentoo-zen2700x> (message from Hadrien Lacour on Thu, 22 Nov 2018 23:00:50 +0100)
> Date: Thu, 22 Nov 2018 23:00:50 +0100
> From: Hadrien Lacour <hadrien.lacour@posteo.net>
>
> * The tty-hook-setup hook is run as it should (on `emacs -nw` and
> `emacsclient -nw` invocations) but doesn't load my terminal specific file
> after the first `emacsclient -nw` call.
> $ emacs -nw myfile
> $ emacs --daemon
> $ emacsclient -nw -c myfile
> $ emacsclient -nw -c myfile
> The last line doesn't load st.el (attached).
Terminal initialization file is loaded only once into a given session.
Why is it a problem in your case? The st.el file you show just
performs key bindings, why do you need to do that more than once?
> * I want to apply theming only for graphical frames, but If I do:
> $ emacs --daemon
> $ emacsclient -nw -c myfile
> $ emacsclient -c myfile
> $ emacsclient -nw -c myfile
>
> The theme is applied for the last two lines, even when using the -c option each
> time.
Not sure I understand why you thought -c had anything to do with theme
application. Anyway, if you want a theme to be applied only to GUI
frames, how about turning on the theme in the
after-make-frame-functions hook?
next prev parent reply other threads:[~2018-11-23 8:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-22 22:00 emacsclient question: tty-setup-hook and X specific config Hadrien Lacour
2018-11-23 8:53 ` Eli Zaretskii [this message]
[not found] ` <20181123103151.qrjd7oaztls7jgsd@gentoo-zen2700x>
2018-11-24 7:37 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8336rsgop2.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.