* Re: Face customisation ignored
[not found] <mailman.663.1536735420.1284.help-gnu-emacs@gnu.org>
@ 2018-09-12 9:31 ` Javier
2018-09-14 6:59 ` Mick Bert
[not found] ` <mailman.764.1536908361.1284.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Javier @ 2018-09-12 9:31 UTC (permalink / raw)
To: help-gnu-emacs
Mick Bert <micbert75@gmail.com> wrote:
>
> and a chunk of my .Xresources
>
> emacs*cursorBlibk: true
> emacs*cursorColor: #404040
> emacs*font: -*-fixed-*-r-*-*-10-*-*-*-*-*-*-*
> !emacs*font: -*-terminus-medium-*-*-*-14-*-*-*-*-*-iso8859-1
> !emacs*font: -*-nimbus mono
> l-medium-r-normal--0-0-*-*-*-*-iso8859-1
> emacs*foreground: #404040
> emacs*geometry: 140x80
> emacs*reverseVideo: true
> emacs*toolBar: true
> emacs*fullscreen: false
Using emacs*reverseVideo might not be a good idea.
Try setting background and foreground explicitly.
For testing you can put the resources in the command line.
emacs \
-xrm 'emacs*background: #404040' \
-xrm 'emacs*foreground: #0099FF'
emacsclient does not accept the xrm option, I guess because
the Xresources are loaded only once at the server initialization.
You can customize the frames created by emacsclient with
--frame-parameters=ALIST
--eval "(progn (...) (...))"
(info "(emacs) emacsclient Options")
(info "(emacs) Table of Resources")
After you edit ~/.Xresources remember to do
xrdb -merge ~/.Xresources
Also, if you are using .Xresources you may want to try emacs compiled
with the lucid toolkit instead of GTK. Some of the .Xresources
values do not work with GTK. You should have a package
emacs-lucid or emacs24-lucid in your distro.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Face customisation ignored
2018-09-12 9:31 ` Face customisation ignored Javier
@ 2018-09-14 6:59 ` Mick Bert
[not found] ` <mailman.764.1536908361.1284.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Mick Bert @ 2018-09-14 6:59 UTC (permalink / raw)
To: help-gnu-emacs
Il giorno mer 12 set 2018 alle ore 11:36 Javier
<invalid@invalid.invalid> ha scritto:
>
> Using emacs*reverseVideo might not be a good idea.
> Try setting background and foreground explicitly.
> For testing you can put the resources in the command line.
>
> emacs \
> -xrm 'emacs*background: #404040' \
> -xrm 'emacs*foreground: #0099FF'
>
>
Thanks for suggestion.
I eventualy obtain the desired behavior by specifying all the face
details (included background color) in the .emacs configuration file.
> Also, if you are using .Xresources you may want to try emacs compiled
> with the lucid toolkit instead of GTK. Some of the .Xresources
> values do not work with GTK. You should have a package
> emacs-lucid or emacs24-lucid in your distro.
I usually prefer the lucid version of emacs, but it's not in the
repository my company set up for the machine I use (it's a mirror
RHEL, containing just a sub-set of the packages). Even emacs itself
was just a special concession.
I am still curious to undersand why the two ways of starting the
server behaves in different ways, but it's not critical.
I mean, always starting from a clean context (that is without any
running server),
emacs
reades the resources, while
emacsclient --create-frame --alternate-editor=emacs
does not
--
Mick
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.764.1536908361.1284.help-gnu-emacs@gnu.org>]
* Re: Face customisation ignored
[not found] ` <mailman.764.1536908361.1284.help-gnu-emacs@gnu.org>
@ 2018-09-15 15:30 ` Javier
2018-09-24 12:32 ` Mick Bert
0 siblings, 1 reply; 5+ messages in thread
From: Javier @ 2018-09-15 15:30 UTC (permalink / raw)
To: help-gnu-emacs
> I usually prefer the lucid version of emacs, but it's not in the
> repository my company set up for the machine I use (it's a mirror
> RHEL, containing just a sub-set of the packages). Even emacs itself
> was just a special concession.
You can compile emacs-lucid yourself as a user. If you have enough
space in $HOME you can even configure a package manager like pkgsrc to
install software without root privileges.
mkdir -p ~/local/bin
mkdir -p ~/local/src
cd ~/local/src
get http://ftp.gnu.org/gnu/emacs/emacs-26.1.tar.gz
tar xzvf emacs-26.1.tar.gz
cd emacs-26.1
./configure --with-x-toolkit=lucid --prefix=${HOME}/local ; make ; make install
export PATH=~/local/bin:${PATH}
emacs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Face customisation ignored
2018-09-15 15:30 ` Javier
@ 2018-09-24 12:32 ` Mick Bert
0 siblings, 0 replies; 5+ messages in thread
From: Mick Bert @ 2018-09-24 12:32 UTC (permalink / raw)
To: help-gnu-emacs
Il giorno sab 15 set 2018 alle ore 17:35 Javier <invalid@invalid.invalid>
ha scritto:
>
> You can compile emacs-lucid yourself as a user. If you have enough
> space in $HOME you can even configure a package manager like pkgsrc to
> install software without root privileges.
>
> mkdir -p ~/local/bin
> mkdir -p ~/local/src
> cd ~/local/src
> get http://ftp.gnu.org/gnu/emacs/emacs-26.1.tar.gz
> tar xzvf emacs-26.1.tar.gz
> cd emacs-26.1
> ./configure --with-x-toolkit=lucid --prefix=${HOME}/local ; make ; make
> install
> export PATH=~/local/bin:${PATH}
> emacs
>
That's what I've done. I am currently working with my own compiled version
of emacs.
Thanks
--
Mick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Face customisation ignored
@ 2018-09-12 6:56 Mick Bert
0 siblings, 0 replies; 5+ messages in thread
From: Mick Bert @ 2018-09-12 6:56 UTC (permalink / raw)
To: help-gnu-emacs
Hello.
I am using GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version
3.22.10), in server mode, and I configured a laucher to execute a
command like
emacsclient --create-frame --alternate-editor=emacs
When it is already running somewhere, it works perfectly. Allthough
the first time I click it, it looks different; the most evident
feature is the background (white, instead of the quite dark grey I
prefer). But the initialisazion seams ok, since all the other features
I configured work, like auto-mode-alist, or some variable value
assignments.
I suspect that what it ignore when called through --alternate-editor,
it the Xresources database.
For completeness I report here a chunk of my .emacs
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:family "Fixed" :foundry "Misc" :slant normal :weight
normal :height 98 :width normal))))
'(font-lock-builtin-face ((((class color) (min-colors 8))
(:foreground "#0099FF" :weight bold))))
'(font-lock-function-name-face ((((class color) (min-colors 8))
(:foreground "cyan" :weight bold))))
'(font-lock-keyword-face ((nil (:foreground "#00F0FF")))))
and a chunk of my .Xresources
emacs*cursorBlibk: true
emacs*cursorColor: #404040
emacs*font: -*-fixed-*-r-*-*-10-*-*-*-*-*-*-*
!emacs*font: -*-terminus-medium-*-*-*-14-*-*-*-*-*-iso8859-1
!emacs*font: -*-nimbus mono
l-medium-r-normal--0-0-*-*-*-*-iso8859-1
emacs*foreground: #404040
emacs*geometry: 140x80
emacs*reverseVideo: true
emacs*toolBar: true
emacs*fullscreen: false
--
Mick
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-09-24 12:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.663.1536735420.1284.help-gnu-emacs@gnu.org>
2018-09-12 9:31 ` Face customisation ignored Javier
2018-09-14 6:59 ` Mick Bert
[not found] ` <mailman.764.1536908361.1284.help-gnu-emacs@gnu.org>
2018-09-15 15:30 ` Javier
2018-09-24 12:32 ` Mick Bert
2018-09-12 6:56 Mick Bert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).