Skip to content

Instantly share code, notes, and snippets.

@tagrudev
Created November 21, 2012 11:53
Show Gist options
  • Save tagrudev/4124518 to your computer and use it in GitHub Desktop.
Save tagrudev/4124518 to your computer and use it in GitHub Desktop.
C runs the command self-insert-command, which is an interactive built-in function in `C source code'.
It is bound to many ordinary text characters.
(self-insert-command N)
Insert the character you type.
Whichever character you type to run this command is inserted.
Before insertion, `expand-abbrev' is executed if the inserted character does
not have word syntax and the previous character in the buffer does.
After insertion, the value of `auto-fill-function' is called if the
`auto-fill-chars' table has a non-nil value for the inserted character.
At the end, it runs `post-self-insert-hook'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment