From: Vitaly Ostanin <vyt@vzljot.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Re: Font in emacs-X11
Date: Wed, 11 Dec 2002 11:27:26 +0300
Message-ID: <20021211112726.1d8eaffc.vyt@vzljot.ru> (raw)
In-Reply-To: <Pine.LNX.4.44L.0212110003530.2527-100000@arrakis.zephyrous>
[-- Attachment #1: Type: text/plain, Size: 3027 bytes --]
On Wed, 11 Dec 2002 00:27:07 +0300 (MSK)
Ivan Zakharyaschev <imz@altlinux.ru> wrote:
<skipped/>
> > pls, куда копать?
>
> Сейчас в X ресурсах по умолчанию присутствует Emacs*font.
> Когда-то раньше был emacs*font.
>
> Emacs*font -- указание значений по умолчанию для ресурсов вида
> *font класса программ ("Emacs"). emacs*font -- то же самое, для
> экземпляров программ с именем "emacs".
>
> Допустим в ресурсах в какой-то сессии присутствуют обе формы.
> Соотношение в их использовании такое:
>
> когда программа запускается командой emacs, используется
> emacs*font(приоритетнее, чем Emacs*font); если бы emacs*font не
> стоял, использовался бы Emacs*font
>
> когда программа запускается командой emacs-X11 (так оно
> происходит, например, из меню), её имя уже не "emacs", а
> "emacs-X11", поэтому используется Emacs*font. (Класс,
> по-прежнему, "Emacs".)
>
> Если эта схема не даёт нужных сведений для решения Вашей
> проблемы, спрашивайте ещё, с более точной информацией: как
> запускается emacs, что есть в /etc/X11/Xresource* и
> /etc/X11/app-defaults/Emacs.
Большое спасибо за детальный ответ! К сожалению, пока не помог,
но уже теплее :)
Я пробовал указывать в ~/.Xdefaults и emacs*font, и Emacs*font,
безуспешно.
Запускается emacs из командной строки (xterm).
$ ls -l `which emacs`
/usr/bin/emacs -> /etc/alternatives/emacs
# update-alternatives --display emacs
emacs - status is auto.
link currently points to /usr/bin/emacs-X11
/usr/bin/emacs-nox - priority 10
/usr/bin/emacs-X11 - priority 20
Current `best' version is /usr/bin/emacs-X11.
xprop показывает для запущенного emacs:
WM_CLASS(STRING) = "emacs", "Emacs"
В /etc/X11/Xresource про emacs:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Emacs, xEmacs
! A copy of all active Emacs resources from
/etc/X11/app-deafults/Emacs:! (This is not stupid: we want that
all Emacs X-clients look the same way! on our desktop.)
Emacs.Foreground: black
Emacs.Background: honeydew
Emacs.mode-line.attributeForeground: red
Emacs.mode-line.attributeBackground: lemon chiffon
Emacs.bold-italic.attributeForeground: blue
Emacs*pointerColor: Orchid
Emacs*cursorColor: Orchid
Emacs*bitmapIcon: on
Emacs*font: fixed
Emacs.menu.attributeFamily: helv
! Some Emacs examples:
! Use similar lines in your ~/.Xdefaults
! to override the colour everywhere in Emacs:
!Emacs*background: green
!Emacs*foreground: red
! Set another window sizes for Emacs:
!Emacs.geometry: 80x25
!Emacs.geometry: 75x67
В /etc/X11/Xresources.ru_RU.CP1251:
! Emacs, xEmacs
Emacs*font:
-misc-fixed-medium-r-normal--15-*-*-*-*-*-microsoft-cp1251
В /etc/X11/app-defaults/Emacs про шрифт написано:
Emacs*font: fixed
Кстати, какие настройки имеют больший приоритет, глобальные, или
из ~/.Xdefaults ?
PS Если кто-нибудь напомнит, как привести в силу изменения в
~/.Xdefaults без перезапуска сессии X - будет просто здорово :)
<skipped/>
--
Regards, Vyt
mailto: vyt@vzljot.ru
JID: vyt@vzljot.ru
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-12-11 8:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-10 16:43 [sisyphus] " Vitaly Ostanin
2002-12-10 21:27 ` Ivan Zakharyaschev
2002-12-11 8:27 ` Vitaly Ostanin [this message]
2002-12-11 10:24 ` [sisyphus] " Sergey Vlasov
2002-12-11 21:07 ` Ivan Zakharyaschev
2002-12-17 9:57 ` Vitaly Ostanin
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=20021211112726.1d8eaffc.vyt@vzljot.ru \
--to=vyt@vzljot.ru \
--cc=sisyphus@altlinux.ru \
/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
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git