Wednesday, March 19, 2008

Some useful emacs tools

;; display date and time always
(setq display-time-day-and-date t)
(display-time)

;; highlight matching parentheses next to cursor
(require 'paren)
(show-paren-mode t)

;; type "y"/"n" instead of "yes"/"no"
(fset 'yes-or-no-p 'y-or-n-p)

;; load auto-show (shows lines when cursor moves to right of long line)
(require 'auto-show)
(auto-show-mode 1)

; highlight region between point and mark
(transient-mark-mode t)

(setq-default auto-show-mode t)

No comments: