Profile

Cover photo
1,924 followers|1,842,735 views
AboutPostsPhotosVideos

Stream

ErgoEmacs

Shared publicly  - 
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
Kinesis Advantage vs Truly Ergonomic Keyboard
which is better?
http://xahlee.info/kbd/kinesis_vs_truly_ergo.html
It's hard to say. There are pros and cons. Kinesis 201133-s Truly Ergonomic Keyboard and Kinesis Advantage. pros for Kinesis: lots thumb keys. curved surface. This is more comfortable than flat surface. tented (the keys near center is higher than keys in sides. like a camping “tent”.).
1
Add a comment...

ErgoEmacs

Shared publicly  - 
Here's a command to reformat current paragraph into 1 long line or multiple short lines. When there's a text selection, work on that region. Else, work on current paragraph (between blank lines.). This command is designed to work with programing language source code.
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs #Lisp How to Determine If Cursor is Inside String or Comment http://ergoemacs.org/emacs/elisp_determine_cursor_inside_string_or_comment.html
Emacs has basic functions to parse syntax. It can determine whether cursor is inside string or comment. (nth 3 (syntax-ppss)) returns true if cursor is inside a string. (defun inside-string-q () "Returns non-nil if inside string, else nil. Result depends syntax table's string quote character.
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
Xah Emacs Tutorial Update

Buy Xah Emacs Tutorial
http://ergoemacs.org/emacs/buy_xah_emacs_tutorial.html

emacs tutorial. New version out. Major rewrite to tens of articles in past 2 months. In particular, the lisp tutorials at Practical Emacs Lisp.

Recommend to a friend, Buy it. Thanks.

sending out update to previous buyers today.
Thank YOU for your fantastic resource. I've been an emacs user for 28 years, and I've learned countless things from your tutorials. Testimonial on Xah's Emacs Tutorial. Use the paypal button below. I'll email you the download link. Make sure your email address used for PayPal is correct.
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs How to Syntax Color Comment. Completely revised.
http://ergoemacs.org/emacs/elisp_comment_coloring.html
need polish more, but pushing it out now.
Emacs Lisp: Syntax Color Comment. By Xah Lee. Date: 2015-06-27 . Last updated: 2016-09-24 . This page tells you how to implement comment syntax coloring in your own major mode. emacs doge comment coloring coloring of comment and string. 〔doge.txt〕 ...
1
2
Add a comment...

ErgoEmacs

Shared publicly  - 
 
If you missed earlier, the how to write a major mode tutorial series has been completely updated. Anyone can write a major mode.
 
#Emacs How to Syntax Color Comment. Completely revised.
http://ergoemacs.org/emacs/elisp_comment_coloring.html
need polish more, but pushing it out now.
Emacs Lisp: Syntax Color Comment. By Xah Lee. Date: 2015-06-27 . Last updated: 2016-09-24 . This page tells you how to implement comment syntax coloring in your own major mode. emacs doge comment coloring coloring of comment and string. 〔doge.txt〕 ...
View original post
2
Add a comment...

ErgoEmacs

Shared publicly  - 
 
Emacs command to Lookup Google, Dictionary, Documentation http://ergoemacs.org/emacs/emacs_lookup_ref.html
Here's how to write a command to lookup the web of the word under cursor. Here's the code: (require 'browse-url) ; part of gnu emacs (defun my-lookup-wikipedia () "Look up the word under cursor in Wikipedia. If there is a text selection (a phrase), use that. This command switches to browser.
2
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
Syntax Coloring in 10 Editors compared http://ergoemacs.org/misc/syntax_coloring_in_editors.html
It's curious. Of the 2 JavaScript modes for emacs, none of them does coloring of much JavaScript builtin words or methods. In fact, none. They only color what's often technically called “keywords”, such as {for, while, var, null, function}, maybe 30 of them or such.
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
new
Emacs Lisp: How to Create Keymap for Major Mode
http://ergoemacs.org/emacs/elisp_create_major_mode_keymap.html

with that, the how to write a major mode series is basically complete.

There are more advanced issues, but those can wait till next time. Ask me if you have questions.
This page shows you how to define keys in your own major mode. Each major mode typically define many of its own keys for calling the major mode's commands. Here's how to define the keys for major mode: ;; sample major mode showing how to do keybinding ;; ---------------------------------------- ...
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs 8 hundreds abbrevs. big time saver. http://ergoemacs.org/emacs/emacs_abbrev_mode.html
major update again. Easier, simpler.
Emacs's abbrev feature lets you type a short word and expand into a full word or code template. For example: bg → background; fed → find . -depth -empty -type d; f → function f () { return 3; }; hrt → ♥. emacs edit abbrev 65513 emacs edit abbrev screen. Call abbrev-mode to turn it on.
5
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#emacs stop ido suggestion when doing a save-as
put this in your emacs init.
(require 'ido)
(define-key (cdr ido-minor-mode-map-entry) [remap write-file] nil)

http://ergoemacs.org/emacs/emacs_buffer_switching.html
This page is a tutorial on switching buffers in emacs. If you don't know what buffers are, first see: Emacs: List Buffers. Call switch-to-buffer 【 Ctrl + x b 】 to switch to a different buffer. Emacs will prompt you for a name, and you can press Tab ↹ for name completion.
1
Add a comment...
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.
Contact Information
Contact info
Email