;;;----- Utility functions --------------------------------------------------
+(defun line-number-at-pos (&optional pos)
+ "Print the current buffer line number and narrowed line number of point."
+ (let ((opoint (or pos (point))) start)
+ (save-excursion
+ (save-restriction
+ (goto-char (point-min))
+ (widen)
+ (forward-line 0)
+ (setq start (point))
+ (goto-char opoint)
+ (forward-line 0)
+ (1+ (count-lines 1 (point)))))))
+
;; --- mdw-uniquify-alist ---
(defun mdw-uniquify-alist (&rest alists)
(maybe-autoload 'cvs-update "pcl-cvs" nil t)
(maybe-autoload 'debian-changelog-mode "debian-changelog-mode" nil t)
(maybe-autoload 'git-status "git" nil t)
+(maybe-autoload 'git-blame-mode "git-blame" nil t)
+(maybe-autoload 'stgit "stgit" nil t)
(and (library-exists-p "vc-git")
(not (memq 'GIT vc-handled-backends))
(setq vc-handled-backends (cons 'GIT vc-handled-backends)))
set -e
editor=${MDW_EDITOR-ed}
+[ -t 0 -a -t 1 ] || TERM=dumb
case "$EDITOR,$VISUAL,$TERM" in
mdw-editor,mdw-editor,dumb) editor=gnuclient;;
mdw-editor,mdw-editor,*);;
--- /dev/null
+meta-key-mode
+global-set-key ")" blink-matching-paren-hack
+global-set-key "]" blink-matching-paren-hack
+global-set-key "}" blink-matching-paren-hack
+blink-matching-paren
+set-fill-column 72
+
+global-set-key "\e[1~" beginning-of-buffer
+global-set-key "\e[2~" overwrite-mode
+global-set-key "\e[4~" end-of-buffer
+global-set-key "\e[17~" auto-fill-mode
+global-set-key "\e[15~" goto-line
+global-set-key "\e[19~" undo
+
+global-set-key "\e\r" call-last-kbd-macro
dotfiles="
bash_profile bash_logout bashrc inputrc bash_completion
emacs emacs-calc vm
- vimrc
+ vimrc mg
mailrc signature
gitconfig cgrc tigrc
lisp-init.lisp:.cmucl-init.lisp