Wednesday, August 8, 2012

Enable Hungry Delete on startup

(setq kill-whole-line t) will make "Ctrl-k" kills an entire line if the cursor is at the beginning of line -- very useful.
(setq c-hungry-delete-key t) will delete "hungrily" in C mode! Use it to see what it does -- very useful.
(setq c-auto-newline 1) will let emacs put in a "carriage-return" for you automatically after left curly braces, right curly braces, and semi-colons in "C mode" -- very useful.

Tuesday, August 7, 2012

Saturday, August 4, 2012

Emacs Line Number

1. download lineNumber.el from
add the following into the emacs init.el

;;Line number
(load-file "~/.emacs.d/lineNumber/lineNumber.el")
(add-hook 'find-file-hook (lambda () (linum-mode 1)))