Xah Emacs Blog Archive 2015-07

Emacs: Replace Straight Quotes to Curly 🚀 (updated code. fixed a out-of-range bug.)

Emacs: Dired Sort File by Time, Size 🚀 new command.

added a manifesto at Xah Emacs Tutorial

ELisp: Word to Wikipedia HTML Link

ELisp: Make HTML Ruby Annotation (on its own page)

Which Chapters of Elisp Manual to Read?

new version. Emacs: Xah Find Replace (xah-find.el). Now, prompt for path regex defaults to your current buffer file's extension, if any.

Emacs: Convert File Line Ending 🚀 (updated code)

Microsoft Universal Foldable Keyboard is now available. For your phone or tablet.

Logitech G910 Keyboard. New key switch: romer-g.

Programer Repetitive Strain Injury

every month, i see stories of programer Repetitive Strain Injury.

Here's another one i ran into today.

[My Experience with Repetitive Strain Injury (RSI) By Yi Tang. At http://blog.yitang.uk/2015/07/19/repetitive-strain-injury/ , accessed on 2015-07-23 ]

Those, who carelessly advocates GNU emacs keys, or swapping Capslock and Control, should be … well, kicked, hard. They don't know what they are talking about. Most of them don't touch type. And, they don't type that much.

This is not a matter of funny trolling. It is a bunch of vocal people spreading harm in society.

over the past 5 years, things got tremendously better. There are now quite a few alternative emacs keybinding systems than the GNU Eamcs default, and quite a lot people using them, and it is no longer being ridiculed upon (For example, hydra, god mode, key-chord-mode, evil-mode, spacemacs, ergoemacs-mode). Meanwhile, many ergonomic keyboards coming out, with mechanical keys too. [see Best Keyboards for Emacs]

Still, there are still people, who chants GNU Emacs keybinding and or Swap capslock/Control, as a mantra.

Emacs: M-x customize Tutorial (minor update)

Emacs: Backup Current File 🚀 (minor update)

i watched Sacha's emacs hangout today. I hope to join in the future. See: http://sachachua.com/blog/2015/07/july-2015-emacs-hangout/

emacs lisp REPL, associate it with buffer

Today's hidden Emacs gem: pressing C-c C-b in an ielm buffer lets you associate it with a buffer, so you can inspect buffer-local variables.

from Wilfred Hughes, https://twitter.com/@_wilfredh

via jcs At http://irreal.org/blog/?p=4222

emacs lisp command to HTML markup ruby

ELisp: Make HTML Ruby Annotation

been busy with javascript in past weeks… to learn JavaScript, please subscribe to my web dev blog Xah's Web Dev Blog

Keyboardio will be in San Francisco, Monday, July 13, 2015 from 7:00 PM to 10:00 PM (PDT). If you want to try the keyboard, go there. Might need to register first, do now. https://www.eventbrite.com/e/meet-the-keyboardio-model-01-san-francisco-tickets-17316336629

thanks to https://twitter.com/EmmanuelOga for headup.

Emacs: Run Shell in Emacs (major update)

Emacs: Difference between shell, term, eshell (minor update)

Emacs: Command to Open Menu (on its own page)

Atom.io editor, JavaScript ES6, Xah JavaScript Tutorial

JavaScript libraries now outnumber any language's libraries.

Guthub's Atom.io editor is completely written in JavaScript. Part of it is released as “electron” framework, which allows writing desktop apps using {JavaScript, HTML, CSS}.

It's quite amazing. Atom.io, is essentially running in a web browser as app. All the GUI, is the browser in disguise. The components are node.js and Chrome (Google's open sourced part of Google Chrome browser). (node.js or its new fork node.io lets you run JavaScript as a language engine without browser, much the same way you run python, perl, ruby, etc. node.js is based on Google's V8 JavaScript engine (which is used by Google Chrome)).

ECMAScript 2015 Language Specification – ECMA-262 6th Edition is released last month, 5 years after the previous ECMAScript Language Specification - ECMA-262 Edition 5.1

I've been continuously working on my JavaScript Tutorial for more than a year now.

it's more complete and more accurate than my Emacs Lisp tutorial

There are Microsoft JavaScript tutorial, Mozilla's JavaScript tutorial, and few books that are free online. The Microsoft one is not bad, the Mozilla's lousy, as it's a wiki, but the reference section is great and indispensible, as it covers the hundreds of DOM objects and methods. There are a few other JavaScript turorial online i can think of.

I intend my JavaScript to be the best on the web, and i think am doing reasonably well. In particular, my tutorial is:

  1. Syntax focused. (or, in jargons, it takes the perspective of formal language.) That is, it take the approach of “what you see is what you get”. (as opposed to talking about a computing model underneath the language.)
  2. Clarity in explaining the confusing part of JavaScript object system.
  3. Example based. Every explanation comes with a self-contained example you can run, so its practically useful and veritably correct in browser.
  4. Concrete. No use of jargons or concepts of spurious software engineering point-of-view, such as “patterns”, “anti-patterns”.
  5. For people who already know how to program. You don't have to wade-thru tens of pages to learn what is a variable, function, module, etc.
  6. Concise. No story-telling style. Every word counts.

Give it a shot, and let me know what you think.

Xah JavaScript Tutorial by Example

Emacs Bug: Pasting into Emacs Freezes Emacs, 2015