X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/3da089939fb0017b21cd44ab95b7ea0fcf8a0090..17fca6742101a0425549e6ed270fa59212fbc637:/dot/emacs diff --git a/dot/emacs b/dot/emacs index 4e28726..c6c8de9 100644 --- a/dot/emacs +++ b/dot/emacs @@ -86,6 +86,13 @@ (trap (show-paren-mode t)) (or window-system (menu-bar-mode -1)) +;; Multiple cursors. + +(setq load-path (nconc load-path (list "~/lib/emacs/multiple-cursors/"))) +(global-set-key [?\C-c ?r] 'mdw-multiple-cursors-keymap) +(autoload 'mdw-multiple-cursors-keymap "mdw-multiple-cursors.el" + "A keymap for Magnar Sveen's awesome multiple-cursors." nil 'keymap) + ;; Temporary directory handling. (defun mdw-check-dir-exists (dir) @@ -118,7 +125,8 @@ (setq mdw-backup-disable-regexps '("/\\.git/COMMIT_EDITMSG$" - "/\\.stgit\\(-edit\\.txt\\|msg\\.txt\\|\\.msg\\)$")) + "/\\.stgit\\(-edit\\.txt\\|msg\\.txt\\|\\.msg\\)$" + "^/tmp/" "^/var/tmp/")) ;; Safe variables. @@ -141,7 +149,10 @@ (setq rmail-display-summary t) (setq rmail-file-name "~/Mail/rmail") -(setq sendmail-program "~/bin/sendmail-hack") +(setq sendmail-program "~/bin/sendmail-hack" + send-mail-function 'sendmail-send-it + mail-interactive t + sendmail-error-reporting-interactive '("-odb" "-oee")) (setq mail-user-agent 'message-user-agent read-mail-command 'gnus) @@ -149,6 +160,8 @@ message-yank-prefix "> " message-yank-cited-prefix "> " message-send-mail-function 'message-send-mail-with-sendmail + message-interactive t + message-sendmail-extra-arguments '("-odb" "-oee") message-sendmail-envelope-from 'header message-indent-citation-function '(message-indent-citation mdw-trim-spaces-after-citing)) @@ -281,6 +294,13 @@ (setq cltl2-root-url (mdw-config 'cltl-url)) (setq common-lisp-hyperspec-root (mdw-config 'hyperspec-url)) +(setq rfcview-rfc-location-pattern + "/ftp@mirror.distorted.org.uk:/pub/mirrors/rfc/rfc%s.txt" + rfcview-std-location-pattern + "/ftp@mirror.distorted.org.uk:/pub/mirrors/rfc/std/std%s.txt" + rfcview-index-location + "/ftp@mirror.distorted.org.uk:/pub/mirrors/rfc/rfc-index.txt") + ;;;-------------------------------------------------------------------------- ;;; W3 and URL fetching stuff. @@ -293,7 +313,7 @@ (setq browse-url-browser-function (mdw-good-url-browser) browse-url-generic-program "mdw-chrome" - browse-url-mozilla-program "firefox") + browse-url-mozilla-program "mdw-iceweasel") (setq w3m-default-display-inline-images t w3m-use-cookies t) @@ -410,7 +430,7 @@ (setq default-frame-alist (mdw-uniquify-alist - '((width . 78) + `((width . ,(if (>= emacs-major-version 21) 77 78)) (height . 33) (vertical-scroll-bars . right) (cursor-type . bar) @@ -418,14 +438,15 @@ (left-fringe . 5) (right-fringe . 5) (scroll-bar-width . 15) - (cursor-color . "red")) - (if mdw-black-background - '((background-mode . dark)) - '((background-mode . light))))) + (cursor-color . "red") + (background-mode . ,(if mdw-black-background 'dark 'light))))) (setq window-system-default-frame-alist '((pm (font . "-os2-System VIO-medium-r-normal--*-40-*-*-m-*-cp850") (menu-font . "8.Helv") (background-color . "lightgrey")) + (w32 (font . "fixed613 10") + (background-color . "black") + (foreground-color . "white")) (nil (menu-bar-lines . 0)))) ;; Other frame fiddling. @@ -496,7 +517,7 @@ (or mdw-fast-startup (trap (progn (org-remember-insinuate) - (global-set-key [?\C-c ?r] 'org-remember)))) + (global-set-key [?\C-c ?o ?r] 'org-remember)))) ;; Minor mode listing @@ -513,7 +534,7 @@ ;; Recognising types of files. (setq auto-mode-alist - (append `(("\\.p[lm]$" . perl-mode) + (append `(("\\.p[lm]$" . cperl-mode) ("\\.m$" . objc-mode) ("\\.mxd$" . c-mode) ("\\.cs$" . csharp-mode) @@ -555,7 +576,8 @@ (append `(("runlisp" . lisp-mode) ("@BASH@" . sh-mode) ("@PYTHON@" . python-mode) - ("@PERL@" . perl-mode) + ("@PERL@" . cperl-mode) + ("/perl" . cperl-mode) ("@TCLSH@" . tcl-mode) ("@WISH@" . tcl-mode) ("/tclsh" . tcl-mode) @@ -593,7 +615,6 @@ arm-assembler-mode-hook)) (global-font-lock-mode t) -(defalias 'perl-mode 'cperl-mode) ;;;-------------------------------------------------------------------------- ;;; Rootly editingness.