Xah Emacs Blog Archive 2015-07 to 2015-07

Emacs: Convert Straight/Curly Quotes (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)

gnu emacs lisp reference manual emacs 24.5 2015-07
GNU emacs lisp reference manual, for emacs 24.5. 〔photo By Jules L White〕 Buy GNU emacs lisp reference manual

see also Which Chapters of Elisp Manual to Read?

if you want to learn practical emacs lisp, as fast as possible, then check my tutorial. Practical Emacs Lisp

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

Emacs: Batch Convert Line Ending in Dired (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 Keyboard 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 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