Xah Emacs Blog Archive 2020-05

Elisp: Replace HTML Entities
again, major code update

Xah Talk Show 2020-08-30 emacs lisp, html named entities to unicode chars, thing at point

XahTV 2020-08-29 emacs lisp, write xah-html-escape-char-to-entity that highlights changed places

Best Keyboards for Emacs
updated

XahTV 2020-08-26 lisp keyboards, arrow key history, emacs dash problem, open source problem

Emacs, Why Not Use Dash

xah talk show 2020-08-25 emacs, reaction on try out speedbar and treemacs

List of Emacs Hooks
updated

Emacs: Restore Opened Files, Windows Config

(progn
  (desktop-save-mode 1)
  (setq desktop-restore-frames nil)
  (setq desktop-auto-save-timeout 300)
  (setq desktop-globals-to-save nil)
  )
(defcustom desktop-globals-to-save
  '(desktop-missing-file-warning
    tags-file-name
    tags-table-list
    search-ring
    regexp-search-ring
    register-alist
    file-name-history)
  "List of global variables saved by `desktop-save'.
An element may be variable name (a symbol) or a cons cell of the form
\(VAR . MAX-SIZE), which means to truncate VAR's value to at most
MAX-SIZE elements (if the value is a list) before saving the value.
Feature: Saving `kill-ring' implies saving `kill-ring-yank-pointer'."
  :type '(repeat (restricted-sexp :match-alternatives (symbolp consp)))
  :group 'desktop)

(defcustom desktop-locals-to-save
  '(desktop-locals-to-save  ; Itself!  Think it over.
    truncate-lines
    case-fold-search
    case-replace
    fill-column
    overwrite-mode
    change-log-default-name
    line-number-mode
    column-number-mode
    size-indication-mode
    buffer-file-coding-system
    buffer-display-time
    indent-tabs-mode
    tab-width
    indicate-buffer-boundaries
    indicate-empty-lines
    show-trailing-whitespace)
  "List of local variables to save for each buffer.
The variables are saved only when they really are local.  Conventional minor
modes are restored automatically; they should not be listed here."
  :type '(repeat symbol)
  :group 'desktop)

Xah Fly Keys Testimonial more

Xah Talk Show 2020-08-21 emacs lisp, write command to highlight text

next online meetup, emacs sf

Thursday, September 3, 2020. 1PM, San Francisco time https://www.meetup.com/Emacs-SF/events/272722964

had a great meetup yesterday, saw Jeff, ag, John Wiegley, Sean, and several ohers. learned a few thing.

Xah Talk Show 2020-08-20 Emacs Lisp. Write Command to Clean Up YouTube Description

emacs 27 george 2020-08-20 W5h4Q
emacs 27 george 2020-08-20 W5h4Q
emacs 27 george 2020-08-21 3bVwW
emacs 27 george 2020-08-21 3bVwW
emacs 27 george 2020-08-21 XgrG8
emacs 27 george 2020-08-21 XgrG8

infamous KickbanXahLeeFromEmacsChannel.htm
cleaned up the HTML.

MELPA URL http://melpa.milkbox.net/packages/ dead

updated in

Xah Talk Show 2020-08-18 Emacs, Manage Project with Projectile

Xah Talk Show 2020-08-17 Emacs Lisp Coding, Display Formfeed as Line

minor updates and repost

Emacs: View Image File
updated

Emacs: Mouse Config
updated

updated.

xah talk show 2020-08-15, emacs/elisp tutorial, modify youtube linkify accept timestamp

online emacs meetup, hosted by our great Jeff T

Thursday, August 20, 2020 4:00 PM to 6:00 PM San Francisco time

https://www.meetup.com/Emacs-SF/events/272601148

Go there and sign up and Reserve. 20 people is the limit. Also mark your calendar.

https://meet.jit.si/Emacs-SF

xah talk show 2020-08-12, emacs 27 features

emacs tabbar screenshot 2013-04-20
emacs tabbar screenshot 2013-04-20
emacs tabbar mode
emacs tabbar mode

Xah Fly Keys Testimonial more

Xah Talk Show 2020-08-10, emacs, braille, python vs ruby vs perl vs emacs lisp

Xah Talk Show 2020-08-07, emacs lisp youtube-linkify, why shell in emacs, sigil war

Xah Talk Show 2020-08-04, emacs lisp coding, open buffer or link in chrome

GNU Emacs Logo
emacs logo on trackball

The Sigils WAR, Language Design and Coding Convention

emacs term nano xah fly keys 2020-07-25 JmtNp
emacs running term running nano with xah fly keys 2020-07-25
thanks to dxlr8r

Linus: Respect is Earned Not Given

more Xah Fly Keys Testimonial

more Testimonial on Xah Emacs Tutorial

Xah Talk Show 2020-07-18 gergo keyboard review and keyboard geeking

Emacs: HTML, Make Citation Link
code update. Now link open in new tab.

Elisp: URL to HTML Link
code update. Now link open in new tab.

Xah Talk Show 2020-07-15, emacs lisp command xah-html-remove-list

xah fly keys MELPA file not found fixed

old version of xah fly keys before the key engine change on 2020-04-27 is now linked from xah fly keys home page at Emacs: Xah Fly Keys

it's no longer on github, cuz it's causing file not found install problems.

thanks to @sarthak

LISP Logo
new photo

LISP Logo new photos

Testimonial on Xah Emacs Tutorial

you can buy lisp logo stickers. see bottom, refresh: LISP Logo

Emacs: Xah Fly Keys
Fixed Space 3 from delete-other-windows to delete-window. Note, 3 is delete-other-windows.

the lisp logo stickers are gone.

LISP Logo
send me your address, i'll mail it to you. I have about 4 of them. My request: you send back a photo of your laptop or device with the sticker on. For usa resident, i sent free. For outside of usa, donation of $5 paypal would be good. paypal to xah@xahlee.org First come first serve. I'll mail out in about a week.

Emacs: Toggle Letter Case
code update. Now also do non-Latin, such as Greek γ to Γ

Emacs: Regex Tutorial
minor update

Emacs: Quote Lines
code update

Emacs: Unicode Tutorial
updated

Elisp: Chinese Char To Reference Link
code update

XahTV 2020-06-16 emacs lisp and html coding. etymology and mythology

emacs eww xahlee info 2020-06-15 dm976
emacs eww xahlee info 2020-06-15 dm976

Emacs: Eww Web Browser

Elisp: Save narrow-to-region

New.

xah emacs lisp live coding 2020-06-10. join lines in a text block

Elisp: Get Text Block

Bozhidar Batsov RuboCop Incident

Elisp: Call Shell Command
added how to call PowerShell.

Elisp: Insert Random UUID
major rewrite and code update.

Xah Fly Keys Testimonial
new page

what keyboard did emacs use in 1970s when emacs was TECO? Emacs Meta Key History

new version of emacs tutorial is out. Buy it! Not gonna send update to previous buyers, because last one is just a month ago.

Xah Lee Emacs Pinky 2020

Emacs: Jump to Previous Position
Major update. by the way, a better way is to split buffer, do stuff, then move cursor back to the other pane, then unsplit.

Emacs: Init File Tutorial
updated basic init file. put this in your emacs init, and life will be good.

Emacs: Font Setup
added howto about setting up a font for Chinese characters and emoji.

reader macro and sigil

lisp reader macro 2020-05-27 xcq7p
lisp reader macro 2020-05-27

&option is just the syntax for rest parameters.

(:key1 val1 :key2 val2 ...) are syntax for key value pairs.

@ and $ are just part of name that i use. syntax coloring of them is due to these starting symbol, in Emacs: Xah Emacs Lisp Mode

The technical name for special symbol like ampersan & in &option [see Elisp: Function Optional Parameters] and colon : in (make-hash-table :test 'equal) [see Elisp: Hash Table], are called reader macro characters. Emacs lisp manual does not have a page explaining lisp reader macro. Elisp does not support user defined reader macro, but has a page about what reader do, on “Read and Print” (info "(elisp) Read and Print") Clojure does not support user defined reader macro neither, but clojure doc does talked about it and has a ton of it, see Clojure: Magic Characters ' \ @ ^ # ` ~ .

About my use of @ and $, blood has been shed over that.

XahTV 2020-05-26 Why Tiling Window Manager Sucks

Misc Technical Essays and Non-Technical Essays on Emacs Lisp

some reorganization of index page at Emacs Misc Index

in particular, created two navigation topic groups, one is Misc Technical Essays on Emacs Lisp see bottom of Emacs Lisp: Symbol vs String and the other is Non-Technical Essays on Emacs Lisp, see bottom of Which Chapters of Elisp Manual to Read?

There is quite a lot more to do about the reorganization of misc essays i've written in past 16 years. Will do in coming days.

XahTV 2020-05-23. Which programing language is worth learning? The Future of Lisp

Why emacs lisp haven't become a general purpose language?
on its own page.

Elisp vs Perl: Validate File Links

Emacs: Xah JavaScript Mode
code minor update.

XahTV 2020-05-06 how to avoid mouse hand pain, logitech g-hub crap, paradox of optimal keymap, substance vs milen, Candace Owens

XahTV. TRON Keyboard, NEC M-System keyboard Japan Thumb-Shift Keyboard. Topre. 2020-05-08

Emacs: xah-lookup.el, Lookup the Web

If you have a question, put $5 at patreon and message me on xah discord.
Or support me by Buy Xah Emacs Tutorial

Emacs Tutorial

Emacs Init

Emacs Keys

ELisp

ELisp Examples

ELisp Write Major Mode