Xah Emacs Blog

Xah Emacs Blog Archive

for keyboard fans, goto Xah keyboard Blog

Elisp: Create Sitemap (minor update)

all major update

Elisp: Generate Web Links Report

xah talk show 2019-06-09 emacs workflow demo. Unicode Phoenician. Cherry Point of Sale Keyboards

Elisp: Unicode Escape Sequence

minor update

Emacs: Move Image File

code update. Now, if you move cursor to another position before the command finished, it'll still insert at the original cursor position.

xah talk show 2019-06-08 can emacs search files in a dir? unix philosophy, do they do one thing well?

grep and find but in pure emacs lisp


gonna do a xah talk show on this today. 3pm San Francisco time. come join me. goto YouTube search xahlee, sub + 🔔.

hi u/andreyorst/ , i think some of the posts in this thread is wrong.

Search text in a dir is a fundamental feature in text editors. Relying on external software for core feature is very bad. This contributed in a major way emacs is not popular. Also, the interface between emacs and shell, has many problems when the string contains a lot escape sequences (such as regex) or lots unicode. (i've documented this in detail in the article you cited)

On Microsoft Windows, this is a practical, major, problem.

am going to do live stream talking about this in 2 hours. (3pm San Francisco time, today 2019-06-08).

to do in live stream:

explain what's wrong with emacs not having builting feature to search dir.


to see if they work without external tool unix grep and unix find

Emacs: Lines to HTML Table (code update)

elisp problem 2019-06-07 pq9nr
elisp problem 2019-06-07 pq9nr

#emacs lisp quiz. the pain of elisp.

emacs long lines problem

emacs longline problem 2019-06-07 sw8fb
emacs longline problem 2019-06-07 sw8fb

#emacs inserted this by mistake. waited for 10 minute still froze. had to force quit. fuck eli and those who pretend emacs no longline problem

Xah talk show. live coding javascript, emacs demo with xah fly keys, on html entities

xah-fly-keys default to insert mode?

screenshot 2019-06-05 bn3dh
twitter xah fly key magit ex carcini 2019-06-05 https://twitter.com/fides_et_cancri/status/1136367038916648960

minibuffer is setup by a hook

(add-hook 'minibuffer-setup-hook 'xah-fly-insert-mode-activate)
(add-hook 'minibuffer-exit-hook 'xah-fly-command-mode-activate)

i think to do that for magit etc mode , one can add to

[see List of Emacs Hooks]

i'll write up a tutorial in the xah fly keys customization section. maybe i'll add as default to magit mode. will think about it.

[see Emacs: Xah Fly Keys Customization]

most efficient page up/down, ergoemacs-mode and xah-fly-keys

page up down ergoemacs mode xah fly keys 2019-06-04 6s5kd
page up down ergoemacs mode xah fly keys 2019-06-04

the page up/down story is somewhat complicated. I used to insist on use the physical keyboard page up/down OR use mouse wheel (must be accelerated OR free spin wheel), which IS THE BEST way to scroll. (continued)

then i got kinesis keyboard, and by keylog i rarely use pgdn key, and the keyboard doesn't have many keys. So, i reassigned pgdn to do switch to last window/app. But sometimes i find i do want to page down (and not using mouse wheel)

So, the Ctrl+9 Ctrl+0 was a last minute kludge. not very happy about that. because the very existence of keybinding will make people use that often. people usually ignore advices, such as argument about how mouse accelerated/spin wheel and pgup/pgdn key are better.

macOS switching to zsh from bash

macos switching to zsh from bash 2019-06-04 m37kv
macos switching to zsh from bash 2019-06-04 m37kv

this is also why, the emacs that ships with Mac is gnu emacs 22, from year 2007. and Richard Stallman also forced emacs repo MELPA by hegemony to not support any packages using GPL v2. FSF has become a scum and irrelevant.

see Richard Stallman Pushing for GPL3, Kicked Out Free Software from Free Software Platform

also, just created a emacs new nav panel

at Emacs Misc Index

Emacs Lisp Doc String Curly Quote Controversy

xah talk show 2019-05-29 JavaScript NodeList vs HTMLCollection, Array-like object, emacs curly quote fiasco

the emacs subject began at 1:19:30

Emacs Lisp Doc String Curly Quote Controversy

Emacs: Latin to Rune (ᚱᚢᚿᛂ)

Updated. Now uses medieval rune alphabet. see Unicode Rune ᚠ

xah talk show 2019-05-20 Math Unicode symbol ℤ, Control/Capslock Position, unix philosophy hacker idots

xah talk show 2019-05-18 emacs xah-fly-keys vs evil mode, vim, keyboard, reading novels, elite hollywood

which font to use

thread on fonts that covers math unicode symbols. I recall DejaVu has it Best Unicode Fonts for Programer

also, google note font suite has the math unicode symbols, i think. I don't remember i verified, but it is intened to cover all unicode font eventually Download Free Unicode Fonts

last resort, is Stix font. It is designed to cover math unicode symbols.

Emacs: Xah JavaScript Mode

added coloring and abbrev/template for padEnd padStart trimEnd trimStart, abs cos sin pi, getElementsByName.

vscode vs atom vs emacs

looks like vscode is now a winner, twice as popular than Atom, even though both are written in JavaScript on Electron.

editor war 2018 jyxt4
editor war 2018 [source https://insights.stackoverflow.com/survey/2018/#technology]

and now, controversy. https://www.reddit.com/r/emacs/comments/bp72wt/i_might_switch_to_vscode/ (note, it's not written by me)

xah talk show 2019-05-10 mouse, spin wheel, linux, closure, perl, lisp.

xah-fly-keys thanks 2019-05-10 f9b4z
xah-fly-keys thanks 2019-05-10 [from https://twitter.com/initega/status/1126882169174089728]

see the full thread for the question.

here's my answer

i hear you. The problem is, it's actually practically impossible to change basic emacs keybindings. This is why, even evil mode, you have lots exceptions. One can hack to enforce 1 keybinding in all major/minor modes, but that adds too much complexity.

what i do and recommend, is just to do case-by-case basis and on your own init. e.g. when a key doesn't work, find out the exact major/minor mode causing it, then add custome override. again, no receipe on exactly how that's done.

xah talk show 2019-05-03 unix philosophy, truncate line, clojure, concurrency, AI, consciousness

Emacs: Move Image File code update. now uses ido.

emacs long line problem

goto https://www.ecma-international.org/ecma-262/ , save the file. Open in emacs. #emacs freezes for 30 min. you'll be unable to work with that file. To work on the file, you need to spend 1 hour to finally be able to break long lines.

then there's eli zaretskii, on reddit, insisting emacs don't have long line problem.

Xah Emacs Blog Archive

If you have a question, put $5 at patreon and message me.
Or Buy Xah Emacs Tutorial
Or buy a nice keyboard: Best Keyboards for Emacs


Emacs Lisp