Profile

Cover photo
1,925 followers|1,887,633 views
AboutPostsPhotosVideos

Stream

ErgoEmacs

Shared publicly  - 
 
#Emacs lots work on Xah Fly Keys in past month. Added 5 efficient commands. http://ergoemacs.org/misc/ergoemacs_vi_mode.html
Date: 2013-09-30 . Last updated: 2016-09-28 . This is the home page of xah-fly-keys. xah-fly-keys.el is a modal editing mode for emacs, like vi, but the design of key/command choice is based on command frequency statistics and ergonomics. xah-fly-keys is more efficient than vim, or any keybinding set ...
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs code complete rewrite. Move Cursor to Beginning of Line/Paragraph. http://ergoemacs.org/emacs/emacs_keybinding_design_beginning-of-line-or-block.html
Last updated: 2017-01-17 . Here's a command that moves cursor to beginning of line or beginning of paragrpah. When called first time, move cursor to beginning of line. When called again, move cursor to beginning of paragraph. When called again, move cursor to beginning of previous paragraph.
1
Add a comment...

ErgoEmacs

Shared publicly  - 
This week's exercise is to write a function insert-random-uuid . When called, it should insert a UUID. Here's some examples of UUID: 0a1cd3bc-96fa-71d1-4338-27092ca4cfa5 1e27a053-60a4-af61-f38d-9f1f123740d6 115024d2-7c74-326e-c9ec-064f42d08b31 070f1f0b-2454-3ffa-4aa2-d6e0652d03fe.
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
Emacs: Find Replace Text in Directory. By Xah Lee. Date: 2006-06-30 . Last updated: 2016-09-27 . Suppose you want to do find and replace, for hundreds of files in a directory, and you need to look at each in a case-by-case basis. Here's how-to using emacs.
1
Add a comment...

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  - 
 
#Emacs new efficient editing command: xah-append-to-register-1 http://ergoemacs.org/emacs/elisp_copy-paste_register_1.html
Last updated: 2017-01-18 . Here's a command that lets you copy/paste text to register 1. (defun xah-copy-to-register-1 () "Copy current line or text selection to register 1. When no selection, copy current line, but newline char is not included. See also: `xah-paste-from-register-1', `copy-to-register'.
2
Add a comment...

ErgoEmacs

Shared publicly  - 
 
here's a series of new efficient editing commands over the holidays if you missed it.

#Emacs Quote Lines http://ergoemacs.org/emacs/emacs_quote_lines.html

#Emacs Delete Backward Char or Bracket Text http://ergoemacs.org/emacs/emacs_delete_backward_char_or_bracket_text.html

#Emacs Paste or Paste Previous http://ergoemacs.org/emacs/emacs_paste_or_paste_previous.html

#Emacs Upcase Sentences http://ergoemacs.org/emacs/emacs_upcase_sentence.html
Here's emacs command to fix letter case of sentences. That is, any letter after a period (full stop) or after a blank line will be capitalized. This saves you typing. You can keep typing without pressing ⇧ Shift to type uppercase letters. After you finished typing a paragraph, you can press a button and have ...
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs. Upcase Sentences. New command. A time saver. Http://ergoemacs.org/emacs/emacs_upcase_sentence.html
Here's emacs command to fix letter case of sentences. That is, any letter after a period (full stop) or after a blank line will be capitalized. This saves you typing. You can keep typing without pressing ⇧ Shift to type uppercase letters. After you finished typing a paragraph, you can press a button and have ...
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs Delete Backward Char or Bracket Text. now also do ascii "quote" 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 \"quote\" or bracket ()[]{}【】「」 etc, delete bracket and the inner text.
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...
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