[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Running emacs without any customisation
From: |
uzibalqa |
Subject: |
Re: [External] : Running emacs without any customisation |
Date: |
Fri, 14 Oct 2022 18:28:58 +0000 |
------- Original Message -------
On Friday, October 14th, 2022 at 5:10 AM, Emanuel Berg <incal@dataswamp.org>
wrote:
> Here is that old (2013-08-07) article again.
>
> I understand it but not the 1-3 part, really? I wonder what
> I is?
>
> ~/.Xdefaults and ~/.Xresources
>
> The old solution was: Whenever an X (Xlib) application is
> started, it looks in ~/.Xdefaults for settings before it
> executes; the file had to be on the same filesystem, in the
> user's HOME.
>
> The new or half-new solution is: Whenever an X application is
> started, it looks for settings in RESOURCE_MANAGER
> (XA_RESOURCE_MANAGER) in the root window of screen 0.
> Settings are there only if xrdb(1) has been executed since the
> start of X. If not, the fallback is to look for settings in
> ~/Xdefaults (every time and for every application, i.e.
> the same as the old solution).
>
> xrdb doesn't necessarily read ~/.Xresources, that's
> a convention. In face xrdb can read many and any file, even
> ~/.Xdefaults. xrdb has to be used even for
Correct. I tested that, xrdb doesn't necessarily read "~/.Xresources".
Would there be side effects if users customarily inhibit x resaurces.
What happens when emacs utilises x resources and an emacs theme is enabled?
> With Xresources any user can use, or not use, xrdb to
> load settings.
> Xresources are mobile; compare to ~/.Xdefaults which hs to be
> in $HOME.
>
> To test the enhanced mobility, after reading resources with
> xrdb, do the following:
>
> 1. In X, a WM (e.g. openbsd-cwm) a terminal emulator (xterm),
> ssh to some system with the -Y option. There, start xterm,
> or any other application that you have configured on your
> local system but not on the system to which you ssh'd.
> Then, do the same on you local system, start xterm.
> They look the same!
>
> 2. Now, on your local system, run 'xrdb -remove'. Again, start
> xterm on both the remote and the local system - again, they
> look the same, only now, they aren't configured.
>
> 3. Last, to demonstrate the limited scope of Xdefaults,
> without using xrdb since step 2, on you local system, run
> 'cp ~/.Xresources ~/.Xdefaults' (after salvaging anything
> of value from Xdefaults), then run xterm on both remote and
> local system. The remote xterm is unconfigured, but the
> local xterm is - only this time from Xdefaults.
>
> Notes:
>
> The #1 Google hit on this issue recommends making ~/.xinitrc
> an executable, with 'chmod +x' - this is not needed.
>
> Also, the same article exemplifies the use of xrdb in
> .xinitrc with a trailing '&', making xrdb a background
> process. This isn't right, as the next program run from
> .xinitrc may use the very same settings, that xrdb is in the
> process of setting up, and that must be completed before any
> application that depends on it can be run. The cure is,
> remove the '&'.
>
> Some xterm settings useful for testing:
>
> xtermautoWrap: true
> xtermpointerMode: 2
> xtermgeometry: 77x28
> xtermbackground: black
> xtermforeground: green4
> xtermfaceName: default
> xterm*metaSendsEscape: true
>
> --
> underground experts united
> https://dataswamp.org/~incal
- Re: [External] : Running emacs without any customisation, (continued)
- Re: [External] : Running emacs without any customisation, uzibalqa, 2022/10/12
- Re: [External] : Running emacs without any customisation, Michael Heerdegen, 2022/10/12
- Re: [External] : Running emacs without any customisation, uzibalqa, 2022/10/12
- Re: [External] : Running emacs without any customisation, Michael Heerdegen, 2022/10/12
- Re: [External] : Running emacs without any customisation, uzibalqa, 2022/10/12
- Re: [External] : Running emacs without any customisation, Michael Heerdegen, 2022/10/12
- Re: [External] : Running emacs without any customisation, uzibalqa, 2022/10/12
- Re: [External] : Running emacs without any customisation, Dale Snell, 2022/10/12
- Re: [External] : Running emacs without any customisation, uzibalqa, 2022/10/12
- Re: [External] : Running emacs without any customisation, Emanuel Berg, 2022/10/14
- Re: [External] : Running emacs without any customisation,
uzibalqa <=
- Re: [External] : Running emacs without any customisation, Po Lu, 2022/10/12
- Re: [External] : Running emacs without any customisation, Po Lu, 2022/10/12
- Re: [External] : Running emacs without any customisation, uzibalqa, 2022/10/12
- Re: [External] : Running emacs without any customisation, Po Lu, 2022/10/12
- Re: [External] : Running emacs without any customisation, Dr Rainer Woitok, 2022/10/13
- Re: [External] : Running emacs without any customisation, uzibalqa, 2022/10/13
- Re: [External] : Running emacs without any customisation, Po Lu, 2022/10/13
- Re: [External] : Running emacs without any customisation, uzibalqa, 2022/10/13
- Re: [External] : Running emacs without any customisation, Po Lu, 2022/10/13
- Re: [External] : Running emacs without any customisation, Christopher Dimech, 2022/10/13