Profile

Cover photo
1,925 followers|1,886,260 views
AboutPostsPhotosVideos

Stream

ErgoEmacs

Shared publicly  - 
 
several articles related to keybinding

Arrow Keys Efficiency: vim HJKL vs Inverted-T IJKL
http://xahlee.info/kbd/vi_hjkl_vs_inverted_t_ijkl_arrow_keys.html

#Linux Swap Control Alt Keys, xmodmap
http://xahlee.info/linux/linux_swap_control_and_alt_xmodmap.html

#Linux Setup Shift Lock Key
http://xahlee.info/linux/linux_shift_lock_key.html
Linux: Setup Shift Lock Key. By Xah Lee. Date: 2017-01-14 . This page shows you how to setup the ⇧ Shift or Caps Lock keys do shift-lock. Shift-lock means you don't have to hold the ⇧ Shift key. For example, to enter T, press the ⇧ Shift key, release, then press t .
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs Open File in External App, in terminal, in folder viewer. http://ergoemacs.org/emacs/emacs_dired_open_file_in_ext_apps.html
Open File in External App. Here's a emacs command to open the current file or marked dired files in external app. (as if you double-clicked the file on desktop) It's useful for image files, PDF file, video, audio files. Put this in your emacs init file. (defun xah-open-in-external-app () "Open the current file or ...
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
all syntax coloring on the site are redone, same color as xah-elisp-mode, color based on “type” of symbol http://ergoemacs.org/emacs/blog.html
all syntax coloring on the site are redone, based on the latest version of Emacs: Xah Emacs Lisp Mode (that is, if you use xah-elisp-mode, the coloring in emacs buffer would be the same as on the website.) notable is that the coloring are based on the “types” of symbol, as detailed here: Meaning of Lisp ...
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
which of the following should you use? (search-forward "cat" nil "NOERROR" ) (search-forward "cat" nil 'NOERROR ). Using symbol is problematic. It adds the symbol to the symbol lookup table, and may already have a value, possibly of nil . Here's explanation. in elisp, there's no named parameters.
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
Emacs for beginner. Run Shell in Emacs http://ergoemacs.org/emacs/emacs_unix.html
Emacs: Run Shell in Emacs. By Xah Lee. Date: 2006-09-30 . Last updated: 2016-07-18 . 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 2016-07-18 Bash shell in emacs. M-x shell.
2
Add a comment...

ErgoEmacs

Shared publicly  - 
 
two code updates.

Emacs: Quote Lines
now skip whitespaces, and supports all unicode brackets 〈〉「」【】〔〕 etc.
http://ergoemacs.org/emacs/emacs_quote_lines.html

Emacs: Delete Backward Char or Bracket Text
this now just better code.
http://ergoemacs.org/emacs/emacs_delete_backward_char_or_bracket_text.html
Here's a command that delete backward char ( ⌫ Backspace ), but if the char is a bracket, any type ()[]{}, delete the bracket and the inner text. (defun xah-delete-backward-char-or-bracket-text () "Delete backward 1 character, but if it's a bracket ()[]{}【】「」 etc, delete bracket and the inner text. If it's bracket ...
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
How to add emacs/vim Keybinding across Mac OS X http://xahlee.info/kbd/osx_keybinding.html
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
if you have emacs 23 or emacs 24, run this, what's the result? (subrp (symbol-function 'defun)) ; say your emacs version 
1
Gary Turner's profile photoErgoEmacs's profile photo
2 comments
 
yes. it's also nil in emacs 25. but i seem to recall it was t few years ago, meaning that defun is written in C.
Add a comment...

ErgoEmacs

Shared publicly  - 
Here's a command to convert Greek to unicode symbols. (require 'xah-replace-pairs) (defun xah-replace-greek-letter-name-to-symbol (*begin *end) "Replace alpha to α, beta to β etc in current line or selection. URL `http://ergoemacs.org/emacs/elisp_replace_greeks_to_symbols.html' Version ...
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#emacs #lisp in this (search-forward "cat" nil ‹t› ), which of the following would you use for ‹t›:
6 votes  -  votes visible to Public
'NOERROR
83%
"NOERROR"
17%
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
for beginner, where to Download Emacs for Windows, Mac, Linux http://ergoemacs.org/emacs/which_emacs.html
This page is a guide on which emacs to download for {Windows, Mac, Linux}. Windows. This is the official GNU Emacs, build for Windows by Free Software Foundation. Download: http://ftp.gnu.org/pub/gnu/emacs/windows/. Download the one named like this: “emacs-24.5-bin-i686-mingw32.zip”.
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
new article. Emacs Lisp: given a bracket such as ( 「 【 or ] } , how to find matching char http://ergoemacs.org/emacs/elisp_find_matching_bracket_char.html
Emacs Lisp: Find Matching Bracket Character. By Xah Lee. Date: 2017-01-08 . Given a character that's left or right bracket, how to find the matching character? Note: besides the ( ) [ ] { } , there are many other unicode brackets: 「 」 〈 〉 【 】 etc. 〔➤see Unicode: Brackets, Quotes «»「」【】《》〕 ...
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