Profile

Cover photo
1,848 followers|1,566,831 views
AboutPostsPhotosVideos

Stream

ErgoEmacs

Shared publicly  - 
Here's a command to turn a word or phrase into a HTML link to Wikipedia. (defun xah-html-word-to-wikipedia-linkify () "Make the current word or text selection into a Wikipedia link. For Example: Emacs becomes Emacs URL ...
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
if you have a emacs or elisp question, ask me. post. I answer when am back in 4 hours.

any q is good q. Got some issue about emacs/lisp you never quite understand but didn't have time to lookup? I'll lookup for you.
2
Moe Bius's profile photoEpo Jemba's profile photoJohn Maxwell's profile photoXah Lee's profile photo
5 comments
Xah Lee
+
1
2
1
 
+John Maxwell i think the current effort emphasize that it about providing elisp interpreter, not replacing elisp as emacs's lang. I recall reading the Guide people clarifying this issue recently (last year or so).
If i recall correctly, the main debate, after assuming this, is whether Guile is robust enough.
Add a comment...

ErgoEmacs

Shared publicly  - 
Here's emacs command that convert file line endings (Linux, Microsoft Windows, Mac OS 9), on current file, or marked files in dired in batch. (defun xah-change-file-line-ending-style (φfile-list φline-ending-style) "Change current file or dired marked file's newline convention.
2
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#emacs another story of programer Repetitive Strain Injury. Not funny. http://ergoemacs.org/emacs/blog.html
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) 2015-07-19 By Yi Tang. @ http://blog.yitang.uk/2015/07/19/repetitive-strain-injury/〕 ...
2
Add a comment...

ErgoEmacs

Shared publicly  - 
 
emacs lisp command to HTML markup ruby http://ergoemacs.org/emacs/blog.html
4
Add a comment...

ErgoEmacs

Announcements  - 
 
keyboardio will be in San Francisco, Monday night. If you want to touch it, register now.
https://www.eventbrite.com/e/meet-the-keyboardio-model-01-san-francisco-tickets-17316336629
(PS i'm not affiliated with keyboardio in anyway)
TL;DR:  Come meet the Keyboardio Model 01, and hang out with its creators too. As we've been building what's become the Model 01, we've talked to hundreds of you online, at conferences, and at festivals. It's been amazing to watch folks suddenly "get it" as they put their hands on a Model 01 in person for the first time. We'll have a few Model 01 prototypes with us for you to try out, as well as a deconstructed Model 01 and a few earlier prototyp...
6
Add a comment...

ErgoEmacs

Shared publicly  - 
 
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:

 • Syntax focused. (or, in jargons, it takes the perspective of formal language.) That is, it take the approach of “when you type this, what happens”. (as opposed to a internal computing “model”). JavaScript is particularly suitable for the formal language approach.
 • Clarity in explaning the confusing part of JavaScript object system.
 • Example based. Every explanation comes with a example, so its: ① practically useful. ② veritably correct in browser.
 • Concrete and to the point, and about the JavaScript language only. No use of jargons or concepts of spurious software engineering point-of-view, such as “patterns”, “anti-patterns”.
 • 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.
 • Concise. No story-telling style. Every word counts.

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

Xah JavaScript Tutorial by Example
http://xahlee.info/js/js.html
This JavaScript tutorial is simple, practical, example based. With links to JS lang spec in each section for correctness. For latest articles, subscribe: Xah Web Dev Blog. Each page is independent. But I recommend you read all pages of the Basics section.
1
2
Xah Lee's profile photoIvan Pierre's profile photo
Add a comment...
Have them in circles
1,848 people
Ningyu Shi's profile photo
Kernel Guardian's profile photo
James Walker's profile photo
Yixin Chen's profile photo
Björn Ramberg's profile photo
Volker Baier's profile photo
James Dalessio's profile photo
Mathias Dahl's profile photo
Mikkel Kristiansen's profile photo

ErgoEmacs

Shared publicly  - 
 
new version of printed GNU #emacs #lisp reference manual, and which chapter to read. http://ergoemacs.org/emacs/blog.html
GNU emacs lisp reference manual, for emacs 24.5. 〔photo By Jules L White〕 amazon. There's a new hard-printed edition of GNU emacs lisp reference manual, for emacs 24.5. amazon. The elisp manual is also online at https://www.gnu.org/software/emacs/manual/elisp.html ...
7
Nick Alcock's profile photo
 
I'm tempted to buy it just for that lovely cover illustration.
Add a comment...

ErgoEmacs

Shared publicly  - 
 
Logitech G910 Keyboard. Romer-g switch. http://xahlee.info/kbd/logitech_g910_keyboard.html
5
Moe Bius's profile photoErgoEmacs's profile photoNick Alcock's profile photo
6 comments
 
+ErgoEmacs, that was exactly what I was thinking. Heck, we could light up the keys in colours depending on continuously-measured frequency-of-use-by-major-mode and based on whether they are major-mode, minor-mode or global keys :)
Add a comment...

ErgoEmacs

Shared publicly  - 
This page shows you how to write a emacs lisp command to backup copy the current file. Here's a simple command to backup the current file. (defun xah-make-backup () "Make a backup copy of current file. The backup file name is ‹name›~‹timestamp›~ example: file.html~20150721T014457~ in the same ...
1
George Jones's profile photoErgoEmacs's profile photo
2 comments
 
+George Jones i do commit daily, but when in a editing session, i need a lot "versions". So, in 2 hour, i'd have about 3 or 4 versions as backup of previous "edition", for that particular file am editing. Kinda rules out git stash too.
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs basics.
 Run Shell in Emacs
 http://ergoemacs.org/emacs/emacs_unix.html
Buy Xah Emacs Tutorial. Master emacs benefits for life. Xah Lee. , 2006-09-30 , …, 2015-07-06. This page is a tutorial on running OS shell inside Emacs. On Linux, this is usually Bash. On Windows, this is cmd.exe , or can be PowerShell. emacs shell 2014-08-22 Bash shell in emacs. M-x shell.
2
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs this is essential when you need it, and is basic #lisp. Call Function in Replacement String http://ergoemacs.org/emacs/lisp_regex_replace_func.html
This page shows you how to use a elisp function in your regex replacement. This lets you do transformation of the matched text. For example, replacing “_” to space, or insert timestamp, current file name, in your replacement text.
2
Add a comment...
People
Have them in circles
1,848 people
Ningyu Shi's profile photo
Kernel Guardian's profile photo
James Walker's profile photo
Yixin Chen's profile photo
Björn Ramberg's profile photo
Volker Baier's profile photo
James Dalessio's profile photo
Mathias Dahl's profile photo
Mikkel Kristiansen's profile photo
Contact Information
Contact info
Email
Story
Tagline
Emacs tips & tricks + ErgoEmacs news.
Introduction
One or two emacs tips per day.

• Tips in using emacs
• Tips in coding emacs lisp.
• Occasional news/tips about ErgoEmacs.

Spread emacs. Join us.