! Initially this file is loaded into an X session by `~.xinitrc`. ! Changing thereafter? Run `xrdb -load ~/.Xresources`. ! ! PUBLIC at `http://reluk.ca/` because project Brec Mode for Emacs refers to it there. ! http://reluk.ca/project/Breccia/Emacs/brec-mode.el ! ═══════════════════════════════════════════════════════════════════════════════════════════════════════ ! E m a c s ! ═══════════════════════════════════════════════════════════════════════════════════════════════════════ ! https://www.gnu.org/software/emacs/manual/html_node/emacs/Table-of-Resources.html#Table-of-Resources Emacs.lineSpacing: 1 ! Font family ! ─────────── ! http://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html ! https://www.gnu.org/software/emacs/manual/html_node/elisp/Faces.html ! ! To list ‘client-side’ fonts: `fc-list | grep --perl-regexp '\b(?:charcell|dual-width|[mM]ono)' | less`. ! To list ‘server-side’ fonts (built into the X server), use `xfontsel` (or `xlsfonts`). ! ! Installation: `~/_/zz.brec` § Fonts. ! Testing: `~/domain/w3.org/UTF-8-demo.txt`. ! ! Fallback font substitution I control by code in `init/fonts` of `~/.config/emacs/initialization.el`. ! Fairfax ! https://www.kreativekorp.com/software/fonts/fairfax.shtml (no longer installed) ! Emacs.font: Fairfax-14 ! Plain Fairfax messes up character spacing, as does plain Fairfax HD, q.v. ! Emacs.font: Fairfax SM-14 ! All but size 14 mess up character spacing. ! ! Fairfax HD [FHD] ! https://www.kreativekorp.com/software/fonts/fairfaxhd/ ! Emacs.font: Fairfax HD-16 ! Plain Fairfax HD messes up character spacing [UDN]. Presumeably this occurs because Emacs ! is one of those ‘braindead programs that determine if a font is monospaced from its advance ! widths and not its PANOSE values’ [FHD]. This I correct by using the SM variant: ! Emacs.font: Fairfax SM HD-16 ! ! JetBrains Mono NL ! ‘NL’ means no ligatures. Presently (27.2) Emacs does not support ligatures. When it does, however, ! then I would enable them only selectively (not to appear, for instance, in Breccian indent blinds). ! Fails some of the more obscure *Box drawing alignment tests*, ! all of which are passed by Misc Fixed. ~/domain/w3.org/UTF-8_demonstration.txt ! Emacs.font: JetBrains Mono NL-9 ! (somewhat misshapen) ! Emacs.font: JetBrains Mono NL-10 ! (bad vertical lines, overbold at joints) ! Emacs.font: JetBrains Mono NL-10:antialias=false ! (ugly) ! Emacs.font: JetBrains Mono NL-11 ! (bad vertical lines, overbold at joints) ! Emacs.font: JetBrains Mono NL-11:antialias=false ! (ugly) ! Emacs.font: JetBrains Mono NL-12 ! (bad vertical lines, overbold at joints, though just slightly) ! Emacs.font: JetBrains Mono NL-12:antialias=false ! (line thickness inconsistent between vertica and horizontal) ! Emacs.font: JetBrains Mono NL-13 ! (bad vertical lines, overbold at joints) ! Emacs.font: JetBrains Mono NL Light-9.5 ! Emacs.font: JetBrains Mono NL-9.5 ! Emacs.font: JetBrains Mono NL Medium-9.5 ! Emacs.font: JetBrains Mono NL SemiBold-9.5 ! ! Misc Fixed ! ~/_/zz.brec § Fonts § Misc Fixed ! Emacs.font: Misc Fixed-10 ! This appears to yield a bitmapped font, which seems to be confirmed by the fact that Misc Fixed ! in Firefox (where it is not bitmapped) does not (unlike here) cover the box drawing characters. ! Yet it yields `-Misc-Misc Fixed-normal-normal-normal-*-13-*-*-*-c-70-iso10646-1` (according to ! `describe-char`), which is not a proper XLFD font description; `xlsfonts` rejects it ! (xlsfonts -fn '-Misc-Misc Fixed-normal-normal-normal-*-13-*-*-*-c-70-iso10646-1') no doubt ! because the family name is wrong. https://wiki.archlinux.org/title/X_Logical_Font_Description ! [No longer bitmapped, however, as of `app-editors/emacs-28.2-r8`.] ! Emacs.font: Misc Fixed-10:antialias=false ! Here `antialias` has no effect, again seeming to indicate the font is bitmapped. ! [No longer bitmapped, however, as of `app-editors/emacs-28.2-r8`.] ! Emacs.font: 7x13 ! Emacs.font: -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso10646-1 ! Emacs.font: -Misc-Fixed-*-*-*--13-120-75-75-c-70-iso10646-1 ! `7x13` gives a widened `c-80` bold (Emacs 25) despite the presence of a matching `c-70` bold file. ! Emacs.font: -Misc-Fixed-*-R-Normal--18-120-100-100-C-90-ISO10646-1 ! Emacs.font: 9x15 ! Emacs.font: -Misc-Fixed-*-R-Normal--15-140-75-75-C-90-ISO10646-1 ! Emacs.font: 8x13 Emacs.font: -Misc-Fixed-*-R-Normal--13-120-75-75-C-80-ISO10646-1 ! These above would display some characters (e.g. extended IPA ‘ɠ’) as semicondensed, ! except initialization function `init/fonts` (see ‘Sync’ below) has code to forestall that. ! Emacs.font: 6x13 ! Emacs.font: -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1 ! Alas, `6x13` is too narrow. ! Changing the font? Sync ↔ `~/.config/emacs/lisp/initialization.el`, ! ↔ *Windowing* § below, and maybe ! ↔ `URxvt.font` below. ! Windowing ! ───────── Col Ro →X ↓Y ! ─── ── ──── ── Emacs.geometry: 106x48+5734+25 ! From `xwininfo` output (geometry section at bottom) after manually placing the window. ! Changing? Sync ↔ `/etc/xdg/Zelea/Desktop.pm` ! ↔ `/usr/local/bin/lay-terminal` ! ↔ `/usr/local/bin/desk-launch` subroutine `_launch_editor` Emacs.internalBorder: 0 Emacs.toolBar: 0 Emacs.verticalScrollBars: off ! Font-face attributes ! ──────────────────── ! https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attributes.html ! https://ftp.gnu.org/old-gnu/Manuals/emacs-21.2/html_node/emacs_543.html (`.Xresources` form) ! Predefined faces of Emacs, together with their initial definitions: ! • Standard faces ....... `/usr/share/emacs//lisp/faces.el`. ! • Color etc. support ... `/usr/share/emacs//lisp/font-lock.el`. ! Colour forms: https://www.gnu.org/software/emacs/manual/html_node/elisp/Color-Names.html Emacs.background: rgb:30/30/30 ! The editor works better with a more-or-less lighter background than my (near black) desktop. Not so ! the Web browser, which like the desktop serves as a whole field of view and therefore looks better at ! near black. So I suffer to maintain different colour sets between editor and browser. Emacs.foreground: rgb:c9/c9/c9 ! Emacs.default.attributeForeground: rgb:c9/c9/c9 !! Till I rediscover where (and why) I had need of it, as claimed: ! To defeat unwanted facing, at least till I learn a better way. Emacs.c-annotation-face.attributeForeground: rgb:80/80/80 Emacs.brec-alarm-bullet-punctuation.attributeWeight: normal Emacs.brec-aside-descriptor.attributeForeground: rgb:80/80/80 Emacs.brec-bullet-nobreak-space.attributeUnderline: false Emacs.brec-command-appendage.attributeForeground: rgb:74/74/74 Emacs.brec-command-bullet.attributeForeground: rgb:90/90/90 Emacs.brec-command-bullet.attributeWeight: normal Emacs.brec-command-descriptor.attributeForeground: rgb:64/64/64 Emacs.brec-command-operator.attributeForeground: rgb:80/80/80 Emacs.brec-comment-block-label.attributeForeground: rgb:80/80/80 Emacs.brec-divider.attributeForeground: rgb:64/64/64 Emacs.brec-division-label.attributeForeground: rgb:80/80/80 Emacs.brec-forbidden-whitespace.attributeInverse: false Emacs.brec-forbidden-whitespace.attributeUnderline: true Emacs.brec-indent-blind-delimiter.attributeForeground: rgb:3a/48/57 Emacs.brec-indent-blind-delimiter.attributeInverse: true Emacs.brec-indent-blind-delimiter.attributeUnderline: false Emacs.brec-pattern-element.attributeForeground: rgb:80/40/40 Emacs.brec-plain-bullet-punctuation.attributeWeight: normal Emacs.brec-task-bullet.attributeForeground: rgb:e0/90/50 Emacs.brec-task-bullet-punctuation.attributeWeight: normal Emacs.brec-titling-label.attributeForeground: rgb:a0/a0/a0 Emacs.cursor.attributeBackground: rgb:ce/ce/00 ! I would like a different cursor between active and inactive windows, especially for ! the vertical bar cursor, but apparently it cannot be done using resource properties. Emacs.error.attributeForeground: rgb:ff/40/40 Emacs.font-lock-builtin-face.attributeForeground: rgb:00/87/57 Emacs.font-lock-comment-face.attributeForeground: rgb:64/64/64 Emacs.font-lock-constant-face.attributeForeground: rgb:e0/90/50 Emacs.font-lock-doc-face.attributeForeground: rgb:60/70/80 Emacs.font-lock-function-name-face.attributeForeground: rgb:47/b7/e0 Emacs.font-lock-keyword-face.attributeForeground: rgb:ff/ff/ff Emacs.font-lock-keyword-face.attributeWeight: bold Emacs.font-lock-regexp-grouping-backslash.attributeForeground: rgb:00/00/00 Emacs.font-lock-regexp-grouping-backslash.attributeWeight: normal Emacs.font-lock-regexp-grouping-construct.attributeForeground: rgb:70/70/b0 Emacs.font-lock-string-face.attributeForeground: rgb:a2/67/4e Emacs.font-lock-type-face.attributeForeground: rgb:00/f0/b0 Emacs.font-lock-variable-name-face.attributeForeground: rgb:ca/af/6d Emacs.fringe.attributeBackground: rgb:00/00/00 Emacs.fringe.attributeForeground: rgb:33/33/33 Emacs.header-line.attributeForeground: rgb:00/00/00 Emacs.isearch.attributeBackground: rgb:00/70/00 Emacs.isearch.attributeForeground: rgb:00/00/00 Emacs.isearch-lazy-highlight-face.attributeBackground: rgb:00/00/00 ! This background and those of `paren-match` and `paren-mismatch` no longer apply ! after editing this file (2012.7). They seem stuck at the previous values. Emacs.java-deprecated-pragma.attributeForeground: rgb:78/88/a0 Emacs.java-deprecated-pragma-param.attributeForeground: rgb:90/87/80 Emacs.jmt-annotation-delimiter.attributeForeground: rgb:80/80/80 Emacs.jmt-annotation-mark.attributeForeground: rgb:64/64/64 Emacs.jmt-annotation-qualifier.attributeForeground: rgb:64/64/64 Emacs.jmt-annotation-string.attributeForeground: rgb:64/64/64 Emacs.jmt-block-tag-name.attributeForeground: rgb:74/74/74 Emacs.jmt-block-tag-parameter.attributeForeground: rgb:64/64/64 Emacs.jmt-boilerplate-keyword.attributeForeground: rgb:80/80/80 Emacs.jmt-boilerplate-keyword.attributeWeight: normal Emacs.jmt-curly-bracket.attributeForeground: rgb:80/80/80 Emacs.jmt-delimiter.attributeForeground: rgb:a4/a4/a4 Emacs.jmt-HTML-start-tag-name.attributeForeground: rgb:79/79/79 Emacs.jmt-inline-rendered-parameter.attributeForeground: rgb:60/70/80 Emacs.jmt-Javadoc-outer-delimiter.attributeForeground: rgb:64/64/64 Emacs.jmt-param-tag-parameter.attributeForeground: rgb:94/8a/60 Emacs.jmt-Javadoc-tag.attributeForeground: rgb:64/64/64 Emacs.jmt-throws-tag-parameter.attributeForeground: rgb:7a/7a/7a Emacs.jmt-value-tag-name.attributeForeground: rgb:80/80/80 Emacs.jmt-value-tag-name.attributeSlant: italic Emacs.jmt-expression-keyword.attributeForeground: rgb:c9/c9/c9 Emacs.jmt-expression-keyword.attributeWeight: normal Emacs.jmt-named-literal.attributeForeground: rgb:c9/c9/c9 Emacs.jmt-package-name.attributeForeground: rgb:80/80/80 Emacs.jmt-package-name-declared.attributeForeground: rgb:a0/a0/a0 Emacs.jmt-qualifier-keyword.attributeForeground: rgb:80/80/80 Emacs.jmt-qualifier-keyword.attributeWeight: normal Emacs.jmt-separator.attributeForeground: rgb:64/64/64 Emacs.jmt-shebang-body.attributeForeground: rgb:87/87/87 Emacs.jmt-string-delimiter.attributeForeground: rgb:64/64/64 Emacs.jmt-type-variable-declaration.attributeForeground: rgb:e4/5f/85 Emacs.jmt-type-variable-tag-parameter.attributeForeground: rgb:a3/51/68 Emacs.jmt-type-reference.attributeForeground: rgb:c9/c9/c9 ! Emacs.jmt-type-reference.attributeForeground: rgb:dd/00/dd Emacs.menu.attributeBackground: rgb:17/17/17 Emacs.menu.attributeForeground: rgb:88/88/88 Emacs.mode-line.attributeBackground: rgb:10/10/10 Emacs.mode-line.attributeForeground: rgb:77/77/77 Emacs.mode-line-inactive.attributeBackground: rgb:20/20/20 Emacs.mode-line-inactive.attributeForeground: rgb:60/60/60 Emacs.mouse.attributeBackground: rgb:ce/ce/00 Emacs.region.attributeBackground: rgb:00/00/90 Emacs.secondary-selection.attributeBackground: rgb:77/22/22 Emacs.show-paren-match-face.attributeBackground: rgb:40/40/40 Emacs.show-paren-match-face.attributeForeground: rgb:00/70/aa Emacs.show-paren-mismatch-face.attributeBackground: rgb:40/40/40 Emacs.show-paren-mismatch-face.attributeForeground: rgb:ff/d0/00 ! See `isearch-lazy-highlight`. Emacs.init/subdued.attributeForeground: rgb:80/80/80 ! Emacs.target-gene-face.attributeBackground: rgb:40/40/40 !! Rather using the default. Emacs.task-sheet-special-face.attributeForeground: rgb:00/b0/80 Emacs.tooltip.attributeBackground: rgb:88/88/88 Emacs.tooltip.attributeForeground: rgb:00/00/00 Emacs.trailing-whitespace.attributeBackground: rgb:3b/3b/3b Emacs.wayscript-bit-face.attributeForeground: rgb:47/b7/e0 Emacs.wayscript-bracketing-face.attributeForeground: rgb:ff/ff/ff Emacs.wayscript-bracketing-face.attributeWeight: bold Emacs.wayscript-commitment-face.attributeForeground: rgb:ff/47/77 Emacs.wayscript-group-face.attributeForeground: rgb:64/64/64 Emacs.wayscript-html-face.attributeForeground: rgb:80/80/80 Emacs.wayscript-qualifying-text-face.attributeForeground: rgb:80/80/80 Emacs.wayscript-step-face.attributeForeground: rgb:e7/90/70 Emacs.wayscript-step-accent-face.attributeForeground: rgb:ae/6c/54 Emacs.wayscript-top-face.attributeForeground: rgb:a7/95/60 Emacs.widget-button-pressed-face.attributeForeground: salmon ! ═══════════════════════════════════════════════════════════════════════════════════════════════════════ ! R X V T - U n i c o d e ! ═══════════════════════════════════════════════════════════════════════════════════════════════════════ ! https://wiki.gentoo.org/wiki/Rxvt-unicode URxvt.saveLines: 8192 ! Perl extensions These depend on `x11-terms/rxvt-unicode` being compiled with useflag `perl` ! ─────────────── URxvt.perl-ext-common: default,keyboard-select ! default : This value is the actual default in case `URxvt.perl-ext-common` is undefined. ! Though undocumented, the default extensions include `eval`, which I use below. ! keyboard-select : See § Keyboard select, below ! URxvt.perl-ext-common: default,clipboard ! clipboard : I added this one as `/usr/lib64/urxvt/perl/clipboard`. !! Deprectated. https://github.com/muennich/urxvt-perls/tree/master/deprecated ! Clipboard ! ───────── ! URxvt.keysym.M-w: perl:clipboard:copy ! URxvt.keysym.C-v: perl:clipboard:paste ! URxvt.keysym.M-C-v: perl:clipboard:paste_escaped !! Deprectated. https://github.com/muennich/urxvt-perls/tree/master/deprecated URxvt.keysym.M-w: eval:selection_to_clipboard URxvt.keysym.C-v: eval:paste_clipboard ! Binding my preferred keys for copy and paste. ! https://github.com/exg/rxvt-unicode/blob/main/src/perl/eval ! https://unix.stackexchange.com/a/329556/140715 URxvt.keysym.Control-Meta-c: builtin-string: URxvt.keysym.Control-Meta-v: builtin-string: ! Disabling the original copy and paste bindings. ! Keyboard select https://github.com/xyb3rt/urxvt-perls, via package `x11-misc/urxvt-perls` ! ─────────────── !! URxvt.keysym.M-Escape: perl:keyboard-select:activate URxvt.keysym.F7: perl:keyboard-select:activate ! `F7` matches Firefox’s caret-browing feature. The standard is `M-Escape`. !! Rxvt.keyboard-select.clipboard: true URxvt.keyboard-select.clipboard: true ! Scrolling ! ───────── URxvt.scrollBar: off URxvt.scrollTtyKeypress: true URxvt.scrollTtyOutput: false ! True (default) to snap to bottom of view on output URxvt.scrollWithBuffer: true ! True to keep scrolled-back view steady despite output. ! False (default) to scroll the scrolled-back view in synchrony with output. ! I would like to bind the mouse wheel (`alt` modifier) to single-line scrolling command. ! The command is at `http://unix.stackexchange.com/questions/44756/urxvt-scroll-just-one-line` ! but I cannot do the binding. Searching 'urxvt OR "rxvt-unicode" mouse keysym' fails. ! Visual ! ────── ! * man 1 urxvt ! * ECMA-48 ! * http://en.wikipedia.org/wiki/ANSI_escape_code#Colors ! * https://en.wikipedia.org/wiki/ANSI_escape_code ! * /home/mike/sys/bin/xterm_colour_chart --88-colours --decimal [ribbon|slices] URxvt.background: #000000 URxvt.color7: gray60 URxvt.color8: gray40 URxvt.colorBD: #ffffff URxvt.cursorColor: #cece00 ! URxvt.cursorUnderline: on URxvt.font: -Misc-Fixed-Medium-R-Normal--13-120-75-75-C-70-ISO10646-1 ! URxvt.font: -Misc-Fixed-Medium-R-Normal--13-120-75-75-C-80-ISO10646-1 ! URxvt.font: -Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO10646-1 ! Changing? Maybe sync ↔ `Emacs.font` elsewhere herein. ! See also Emacs’s `command describe-char`, which shows the precise font used. ! URxvt.font: xft:Misc Fixed-10:antialias=false ! antialias : False gives faster scrolling, and makes no difference to rendering. ! Works for `Emacs.font`, but here the same Xft specification gives no rendering ! for a vertical ellipsis '⋮' (22ee). URxvt.foreground: gray60 ! URxvt.highlightColor: #F0F0F0 URxvt.throughColor: #8080f0 URxvt.underlineColor: #fff000 ! ═══════════════════════════════════════════════════════════════════════════════════════════════════════ ! X W i n d o w S y s t e m ! ═══════════════════════════════════════════════════════════════════════════════════════════════════════ Xcursor.theme: whiteglass ! Xcursor.core: true ! To disable the annoying shadow effect. ! http://expert.mandrivalinux.com.narkive.com/yfzu3TYr/x11-alpha-blend-cursor ! http://askubuntu.com/questions/392737/how-do-i-disable-cursor-shadow !! But it also removes anti-aliasing, brightens the colour, and reverts to a small cursor in terminals. ! Xcursor.size: 32 !! yields artifact lines with `redglass` and `whiteglass` themes Xcursor.size: 48 ! NOTES ! ───── ! FHD https://www.kreativekorp.com/software/fonts/fairfaxhd/ ! ! UDN See for example `~/domain/w3.org/UTF-8-demo.txt` § Nicer typography in plain text files.