Recently Emacs-fu started a good post/stimulus on the .emacs tricks people love most.
link: http://emacs-fu.blogspot.com/2009/04/dot-emacs-trickery.html
Here are several things I learned and loved so much that I would like to take a note on them.
;; highlight the current line, as in Matlab
(global-hl-line-mode)
;; when you mark a region, you can delete it or replace it as in other Windows programs:
;; simply hit delete or type whatever you want or yank
(delete-selection-mode)
;; make the slow activity to echo my unfinished commands faster
(setq echo-keystrokes 0.1)
;; let there be a marker on every empty line on the left fringe
(setq default-indicate-empty-lines t)
;; for Emacs 23 only. use the system’s trash can when deleting files and foldrs
(setq delete-by-moving-to-trash t)
;; set the cursor as a bar instead the rectangular block
(setq cursor-type ‘bar)
;; by default, do not display continuation lines, instead, give each line of the text just one screen line
(setq-default truncate-lines t)
;; show the matching parentheses immediately
(setq show-paren-delay 0)
Pingback: Interesting Emacs Links – 2009 Week 19 « A Curious Programmer