chiark / gitweb /
emacs, dot-emacs: Mark files as being UTF-8.
[profile] / emacs
1 ;;; -*- mode: emacs-lisp; coding: utf-8 -*-
2 ;;;
3 ;;; $Id: .emacs,v 1.11 1997/01/01 18:47:09 mdw Exp $
4 ;;;
5 ;;; Emacs configuration file
6 ;;;
7 ;;; (c) 1996-1999 Mark Wooding
8 ;;;
9
10 ;;;----- Licensing notice ---------------------------------------------------
11 ;;;
12 ;;; This program is free software; you can redistribute it and/or modify
13 ;;; it under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 2 of the License, or
15 ;;; (at your option) any later version.
16 ;;;
17 ;;; This program is distributed in the hope that it will be useful,
18 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 ;;; GNU General Public License for more details.
21 ;;;
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with this program; if not, write to the Free Software
24 ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
25
26 (setq load-path (nconc load-path (list "~/lib/emacs")))
27 (require 'dot-emacs)
28
29 ;;;----- Some random initialisation -----------------------------------------
30
31 (setq mdw-init-window (selected-window))
32
33 ;; --- Load some other bits of code ---
34
35 (maybe-autoload 'cc-mode "cc-mode" nil t)
36 (maybe-autoload 'rexx-mode "rexx-mode" nil t)
37 (maybe-autoload 'cvs-update "pcl-cvs" nil t)
38 (maybe-autoload 'debian-changelog-mode "debian-changelog-mode" nil t)
39 (maybe-autoload 'git-status "git" nil t)
40 (maybe-autoload 'git-blame-mode "git-blame" nil t)
41 (maybe-autoload 'stgit "stgit" nil t)
42 (and (library-exists-p "vc-git")
43      (not (memq 'GIT vc-handled-backends))
44      (setq vc-handled-backends (cons 'GIT vc-handled-backends)))
45 (and (library-exists-p "quilt")
46      (load "quilt"))
47
48 (trap
49   (or (fboundp 'make-regexp)
50       (load "make-regexp")))
51
52 (trap (require 'tex-site))
53
54 ;; --- Skeleton stuff ---
55
56 (trap (require 'skel-init))
57
58 ;; --- Window system-dependent things ---
59
60 (require 'paren)
61 (trap (show-paren-mode t))
62 (or window-system (menu-bar-mode -1))
63
64 ;; --- Temporary directory handling ---
65
66 (defun mdw-check-dir-exists (dir)
67   (and dir
68        (file-directory-p dir)
69        dir))
70 (setq tmpdir (or (mdw-check-dir-exists (getenv "TMPDIR"))
71                  (mdw-check-dir-exists (format "/tmp/%s" (user-login-name)))
72                  "/tmp"))
73
74 ;; --- Emacs server behaviour ---
75
76 (and window-system
77      (trap (gnuserv-start)
78            (setq server-temp-file-regexp (concat "^" tmpdir "\\|/draft$"))))
79
80 ;; --- Control backup behaviour ---
81
82 (setq backup-by-copying nil)
83 (setq backup-by-copying-when-linked t)
84 (setq backup-by-copying-when-mismatch t)
85
86 ;; --- Calculator fiddling ---
87
88 (setq calc-settings-file "~/.emacs-calc")
89 (load calc-settings-file)
90
91 ;; ---- Some mail and news configuration ---
92
93 (setq mail-from-style 'parens)
94 (setq mail-signature t)
95 (setq mail-yank-prefix "> ")
96 (setq mail-archive-file-name "~/Mail/sent")
97
98 (setq rmail-display-summary t)
99 (setq rmail-file-name "~/Mail/rmail")
100
101 ;; --- GNUS configuration ---
102
103 (setq gnus-select-method '(nntp "tux.nsict.org"))
104 (setq gnus-read-active-file 'some)
105 (setq gnus-inhibit-startup-message t)
106 (setq gnus-large-newsgroup 500)
107
108 ;; --- Internationalization twiddling ---
109
110 (trap
111   ;; Have top-bit-set characters work properly in terminals.
112   (let ((im (current-input-mode)))
113     (apply #'set-input-mode
114            (nconc (list (nth 0 im) (nth 1 im) 0) (nthcdr 3 im)))))
115
116 ;; --- Don't disable any commands ---
117
118 (mapatoms #'(lambda (sym) (put sym 'disabled nil)))
119
120 ;; --- Split a wide window ---
121
122 (mdw-divvy-window)
123
124 ;; --- Postscript printing ---
125
126 (setq ps-paper-type 'a4
127       ps-print-color-p nil
128       ps-landscape-mode t
129       ps-number-of-columns 3
130       ps-font-family 'Courier
131       ps-font-size 9)
132
133 ;; --- Splash screen stuff ---
134
135 (or window-system
136     (setq inhibit-splash-screen t
137           inhibit-startup-message t))
138
139 ;; --- Other goodies ---
140
141 (trap (resize-minibuffer-mode 1))       ;Make minibuffer grow dynamically
142 (auto-compression-mode 1)               ;Enable automatic compression
143 (setq dabbrev-case-replace nil)         ;Retain case when completing
144 (setq next-line-add-newlines nil)       ;Don't add weird newlines
145 (setq split-height-threshold 45)        ;Reuse windows where sensible
146 (setq dired-deletion-confirmer          ;Make deletion easier in dired
147       (symbol-function 'y-or-n-p))
148 (setq dired-listing-switches "-alF")    ;Do `ls -F' things in dired windows
149 (setq case-fold-file-names nil)         ;Don't translate file names (grr...)
150 (setq scroll-step 5)                    ;Don't scroll too much at a time
151 (setq-default fill-column 77)           ;I use rather narrow windows
152 (setq-default comment-column 40)        ;Set a standard comment column
153 (setq-default truncate-partial-width-windows nil)
154 (setq diff-switches "-u"                ;I like reading unified diffs
155       cvs-diff-flags (list diff-switches))
156 (setq echo-keystrokes 10)               ;Long delay before keystrokes echo
157 (setq ange-ftp-ftp-program-name "pftp") ;Use passive FTP
158 (setq find-ls-option                    ;Build file lists efficiently
159       '("-print0 | xargs -0r ls -ld" . "ld"))
160 (setq Info-fontify-maximum-menu-size 60000)
161 (setq ispell-dictionary "british"
162       flyspell-default-dictionary "british"
163       ispell-silently-savep t)
164 (trap
165   (require 'uniquify)
166   (setq uniquify-buffer-name-style 'post-forward-angle-brackets)
167   (setq uniquify-after-kill-buffer-p t))
168 (transient-mark-mode t)
169 (trap
170   (tooltip-mode 0)
171   (tool-bar-mode 0))
172 (trap (global-auto-revert-mode t))
173 (setq psgml-html-build-new-buffer nil)
174
175 (setq cltl2-root-url (mdw-config 'cltl-url))
176 (setq common-lisp-hyperspec-root (mdw-config 'hyperspec-url))
177
178 ;;;----- W3 and URL fetching stuff ------------------------------------------
179
180 (let ((proxy (mdw-config 'http-proxy)))
181   (setq url-proxy-services
182         `(("http" . ,proxy)
183           ("ftp" . ,proxy)
184           ("gopher" . ,proxy))))
185 (setq url-cookie-untrusted-urls '("."))
186
187 (setq browse-url-browser-function (mdw-good-url-browser)
188       browse-url-mozilla-program "firefox")
189
190 (setq w3m-default-display-inline-images t)
191
192 (setq w3-do-incremental-display t
193       w3-use-menus '(file edit view go bookmark options
194                      buffers style search emacs nil help)
195       w3-display-inline-image t
196       w3-keybinding 'info)
197
198 ;;;----- Calendar configuration ---------------------------------------------
199
200 ;; --- Trivial stuff for the sunrise/sunset calculations ---
201
202 (setq calendar-latitude 52.2)
203 (setq calendar-longitude 0.1)
204 (setq calendar-location-name "Cambridge, UK")
205
206 ;; --- Date format fiddling ---
207
208 (setq european-calendar-style t)
209
210 (setq diary-date-forms '((day "[-/]" month "[^-/0-9]")
211                          (day " *" monthname "[ \t]*\\(\^M\\|\n\\)")
212                          (backup day " *" monthname "\\W+\\<[^*0-9]")
213                          (day "[-/]" month "[-/]" year "[^0-9]")
214                          (day " *" monthname " *" year "[^0-9]")
215                          (year "[-/]" month "[-/]" day "[^0-9]")
216                          (dayname "\\W")))
217
218 ;; --- Fancy diary handling ---
219
220 (add-hook 'diary-display-hook 'fancy-diary-display)
221 (setq diary-list-include-blanks t)
222 (add-hook 'list-diary-entries-hook 'sort-diary-entries t)
223 (add-hook 'list-diary-entries-hook 'include-other-diary-files)
224 (add-hook 'mark-diary-entries-hook 'mark-included-diary-files)
225
226 ;; --- Appointment management ---
227
228 (add-hook 'diary-hook 'appt-make-list)
229 (setq appt-issue-message t)
230 (setq appt-display-interval 3)
231 (setq appt-message-warning-time 10)
232
233 ;; --- Cosmetic stuff ---
234
235 (setq display-time-24hr-format t)
236 (display-time)
237 (trap
238   (if window-system
239       (let ((view-diary-entries-initially t))
240         (calendar))))
241
242 (defvar mdw-black-background t)
243
244 ;; --- Define more mode hooks for MailCrypt ---
245
246 (setq mdw-mc-modes
247       '((mdwmail-mode (encrypt . mdwmail-mc-encrypt)
248                       (sign . mdwmail-mc-sign))))
249
250 ;; --- Load the MailCrypt support ---
251
252 (trap
253   (and (string-match "linux" (symbol-name system-type))
254        (progn (require 'mailcrypt-init)
255               (require 'mailcrypt)
256               (setq mc-default-scheme 'mc-scheme-gpg)
257               (setq mc-pgp-user-id "mdw-nsict-pgp")
258               (setq mc-gpg-user-id "mdw-nsict-gpg")
259               (setq mc-modes-alist (append mc-modes-alist mdw-mc-modes))
260               (setq mc-pgp-always-sign t)
261               (setq mc-gpg-always-sign t)
262               (setq mc-always-replace 'never)
263               (setq mc-passwd-timeout 3600)
264               (setq mc-temp-directory tmpdir)
265               (setq mc-modes-alist (append mc-modes-alist mdw-mc-modes))
266               (define-key mc-write-mode-map "\C-c/S" 'mc-sign-region)
267               (define-key mc-write-mode-map "\C-c/E" 'mc-encrypt-region)
268               (add-hook 'text-mode-hook 'mc-install-write-mode))))
269
270 ;;;----- Other common declarations ------------------------------------------
271
272 ;; --- Default frame size ---
273
274 (setq default-frame-alist
275       (mdw-uniquify-alist
276        '((width . 78)
277          (height . 33)
278          (vertical-scroll-bars . right))
279        (and window-system
280             '((cursor-type . bar)
281               (cursor-blink . t)
282               (left-fringe . 5)
283               (right-fringe . 5)
284               (scroll-bar-width . 15)))
285        '((cursor-color . "red"))
286        (if mdw-black-background
287            '((background-color . "black")
288              (foreground-color . "white")
289              (background-mode . dark))
290          '((background-mode . light)))
291        (and (eq window-system 'pm)
292             '((font . "-os2-System VIO-medium-r-normal--*-40-*-*-m-*-cp850")
293               (menu-font . "8.Helv")
294               (background-color . "lightgrey")))
295        '((transparency . t))
296        default-frame-alist))
297
298 ;; --- Other frame fiddling ---
299
300 (setq frame-title-format '("" invocation-name "@" system-name ": %b"))
301
302 ;; --- Global keymap changes ---
303
304 (trap
305   (windmove-default-keybindings)
306   (setq windmove-wrap-around t))
307 (trap (iswitchb-mode))
308 (global-set-key "\M-#" 'calc-dispatch)
309 (global-set-key [f4] 'query-replace-regexp)
310 (global-set-key [f5] 'goto-line)
311 (global-set-key [f6] 'auto-fill-mode)
312 (global-set-key [f7] 'occur)
313 (global-set-key [f8] 'undo)
314 (global-set-key [f9] 'mdw-divvy-window)
315 (global-set-key [insertchar] 'overwrite-mode)
316 (global-set-key "\C-xm" 'vm-mail)
317 (global-set-key "\C-x\C-n" 'skel-create-file)
318 (global-set-key "\C-x4n" 'skel-create-file-other-window)
319 (global-set-key "\C-x5n" 'skel-create-file-other-frame)
320 (global-set-key [delete] 'delete-char)
321 (global-set-key "\C-[\C-m" 'call-last-kbd-macro)
322 (global-set-key "\M-q" 'mdw-fill-paragraph)
323 (global-set-key "\C-h\C-m" 'manual-entry)
324 (global-set-key [mode-line C-mouse-1] 'mouse-tear-off-window)
325 (global-set-key [vertical-scroll-bar C-down-mouse-1]
326                 'mouse-drag-vertical-line)
327 (global-set-key [vertical-scroll-bar C-mouse-1]
328                 #'(lambda () (interactive)))
329 (global-set-key [mouse-4] 'mdw-wheel-up)
330 (global-set-key [mouse-5] 'mdw-wheel-down)
331
332 ;; --- Recognising types of files ---
333
334 (setq auto-mode-alist
335       (append `(("\\.p[lm]$" . perl-mode)
336                 ("\\.m$" . objc-mode)
337                 ("\\.mxd$" . c-mode)
338                 ("\\.cs" . csharp-mode)
339                 ;; ("/[ch]/" . c-mode)
340                 (,(concat "/\\("
341                           "\\.stgit\\.msg" "\\|"
342                           "\\.git/COMMIT_EDITMSG" "\\|"
343                           "svn-commit\\.tmp" "\\|"
344                           "svk-commit[^/.]*\\.tmp"
345                           "\\)$")
346                  . text-mode)
347                 (,(concat "^" tmpdir "/\\("
348                           "svk-commit[^/.]*\\.tmp" "\\|"
349                           "gitci\\.[^/.]*" "\\|"
350                           "cvs[^/.]\\{6\\}" "\\|"
351                           "quilt_header\.[^/.]\\{6\\}"
352                           "\\)$")
353                  . text-mode)
354                 ("\\.calc?$" . apcalc-mode)
355                 ("/src/linux/.*\\.\\(c\\|h\\|cc\\)$" . linux-c-mode)
356                 ("/\\(s\\|sh\\)/" . arm-assembler-mode)
357                 ("\\.\\(cmd\\|exec\\|rexx\\)$" . rexx-mode)
358                 ("\\.st$" . smalltalk-mode)
359                 ("\\.msgs$" . messages-mode)
360                 ("/all-cmds\\.in$" . cpp-messages-mode)
361                 ("\\.\\(tex\\|dtx\\)$" . latex-mode)
362                 ("\\.gc$" . haskell.-mode)
363                 (,(concat "^" (getenv "HOME") "/News/") . mdwmail-mode)
364                 (,(concat "^" tmpdir "/\\(SLRN\\|snd\\|pico\\)")
365                  . mdwmail-mode))
366               auto-mode-alist))
367
368 (setq interpreter-mode-alist
369       (append `(("runlisp" . lisp-mode))
370               interpreter-mode-alist))
371
372 (setq completion-ignored-extensions
373       (append `(".hc" ".hi") completion-ignored-extensions))
374
375 ;; --- Some common local definitions ---
376
377 (make-variable-buffer-local 'mdw-auto-indent)
378
379 (mapcar (lambda (hook) (add-hook hook 'mdw-misc-mode-config))
380         '(c-mode-hook c++-mode-hook objc-mode-hook java-mode-hook
381           perl-mode-hook cperl-mode-hook python-mode-hook awk-mode-hook
382           tcl-mode-hook asm-mode-hook
383           TeX-mode-hook LaTeX-mode-hook TeXinfo-mode-hook
384           tex-mode-hook latex-mode-hook texinfo-mode-hook
385           emacs-lisp-mode-hook scheme-mode-hook
386           lisp-mode-hook lisp-interaction-mode-hook inferior-lisp-mode-hook
387           slime-repl-mode-hook
388           sml-mode-hook haskell-mode-hook
389           smalltalk-mode-hook rexx-mode-hook
390           arm-assembler-mode-hook))
391
392 (global-font-lock-mode t)
393 (defalias 'perl-mode 'cperl-mode)
394
395 ;;;----- Rootly editingness -------------------------------------------------
396
397 (eval-after-load "tramp"
398   '(progn
399      (setq tramp-methods
400            (mdw-uniquify-alist
401             `(("become"
402                (tramp-connection-function tramp-open-connection-su)
403                (tramp-remote-sh "/bin/sh")
404                (tramp-login-program "become")
405                (tramp-copy-program nil)
406                (tramp-copy-args nil)
407                (tramp-copy-keep-date-arg nil)
408                (tramp-login-args ("TERM=dumb" "%u")))
409               ("really"
410                (tramp-connection-function tramp-open-connection-su)
411                (tramp-login-program "really")
412                (tramp-login-args ("-u" "%u" "--"
413                                   "env" "TERM=dumb" "/bin/sh"))
414                (tramp-copy-program nil)
415                (tramp-copy-args nil)
416                (tramp-copy-keep-date-arg nil)
417                (tramp-remote-sh "/bin/sh"))
418               ,@tramp-methods)))
419      (setq tramp-multi-connection-function-alist
420            (mdw-uniquify-alist
421             '(("bc" tramp-multi-connect-su "become TERM=dumb %u%n"))
422             '(("r" tramp-multi-connect-su "really -u %u%n"))
423             tramp-multi-connection-function-alist))
424      (setq tramp-default-method "ssh")
425      (setq tramp-default-method-alist
426            `(("\\`localhost\\'" ""
427               ,(cond ((executable-find "become") "become")
428                      ((executable-find "really") "really")
429                      (t "su")))))))
430
431 ;;;----- General fontification ----------------------------------------------
432
433 ;; --- Configure lazy fontification ---
434
435 (and (fboundp 'lazy-lock-mode)
436      (setq font-lock-support-mode 'lazy-lock-mode))
437 ; (setq lazy-lock-defer-contextually t)
438 (setq lazy-lock-defer-time nil)
439 (setq font-lock-maximum-decoration 3)
440 (setq lazy-lock-minimum-size 0)
441 (setq lazy-lock-stealth-time 5)
442 (setq lazy-lock-stealth-lines 100)
443 (setq lazy-lock-stealth-verbose t)
444
445 (add-hook 'after-make-frame-functions 'mdw-do-set-font)
446 (add-hook 'term-setup-hook (lambda () (mdw-do-set-font (selected-frame))))
447 (add-hook 'window-setup-hook (lambda () (mdw-do-set-font (selected-frame))))
448
449 (add-hook 'c-mode-hook 'mdw-fontify-c-and-c++ t)
450 (add-hook 'objc-mode-hook 'mdw-fontify-c-and-c++ t)
451 (add-hook 'c++-mode-hook 'mdw-fontify-c-and-c++ t)
452 (add-hook 'linux-c-mode-hook #'(lambda () (setq c-basic-offset 8)))
453 (add-hook 'asm-mode-hook 'mdw-fontify-asm t)
454
455 (add-hook 'apcalc-mode-hook 'mdw-misc-mode-config t)
456 (add-hook 'apcalc-mode-hook 'mdw-fontify-apcalc t)
457
458 (add-hook 'java-mode-hook 'mdw-fontify-java t)
459
460 (add-hook 'awk-mode-hook 'mdw-fontify-awk t)
461
462 (add-hook 'perl-mode-hook 'mdw-fontify-perl t)
463 (add-hook 'cperl-mode-hook 'mdw-fontify-perl t)
464
465 (setq-default py-indent-offset 2)
466 (add-hook 'python-mode-hook 'mdw-fontify-python t)
467
468 (setq-default tcl-indent-level 2)
469 (add-hook 'tcl-mode-hook 'mdw-fontify-tcl t)
470
471 (add-hook 'rexx-mode-hook 'mdw-fontify-rexx t)
472
473 (setq sml-nested-if-indent t)
474 (setq sml-case-indent nil)
475 (setq sml-indent-level 4)
476 (setq sml-type-of-indent nil)
477 (add-hook 'sml-mode-hook 'mdw-fontify-sml t)
478
479 (add-hook 'haskell-mode-hook 'mdw-fontify-haskell t)
480 (setq-default haskell-indent-offset 2)
481
482 (add-hook 'texinfo-mode-hook 'mdw-fontify-texinfo t)
483 (add-hook 'TeXinfo-mode-hook 'mdw-fontify-texinfo t)
484
485 (setq LaTeX-table-label "tbl:")
486 (setq-default TeX-master nil)
487 ;; (setq TeX-parse-self t)
488 ;; (setq TeX-auto-save t)
489 (setq TeX-auto-untabify nil)
490 (add-hook 'TeX-mode-hook 'mdw-fontify-tex t)
491 (add-hook 'tex-mode-hook 'mdw-fontify-tex t)
492 (add-hook 'LaTeX-mode-hook 'mdw-fontify-tex t)
493 (add-hook 'latex-mode-hook 'mdw-fontify-tex t)
494
495 (add-hook 'sh-mode-hook #'mdw-setup-sh-script-mode)
496
497 (add-hook 'smalltalk-mode-hook 'mdw-fontify-smalltalk t)
498 (add-hook 'smalltalk-mode-hook 'mdw-setup-smalltalk t)
499
500 (add-hook 'emacs-lisp-mode-hook 'mdw-fontify-lispy t)
501 (add-hook 'scheme-mode-hook 'mdw-fontify-lispy t)
502 (add-hook 'lisp-mode-hook 'mdw-fontify-lispy t)
503 (add-hook 'inferior-lisp-mode-hook 'mdw-fontify-lispy t)
504 (add-hook 'lisp-interaction-mode-hook 'mdw-fontify-lispy t)
505 (add-hook 'slime-repl-mode-hook 'mdw-fontify-lispy t)
506 (add-hook 'lisp-mode-hook 'mdw-common-lisp-indent t)
507 (trap
508   (require 'slime-autoloads)
509   (slime-setup '(slime-autodoc)))
510 (trap (require 'xscheme))
511 (setq-default xscheme-process-command-line "scheme -large -emacs")
512 (add-hook 'inferior-lisp-mode-hook
513           #'(lambda ()
514               (local-set-key "\C-m" 'comint-send-and-indent)) t)
515
516 (add-hook 'text-mode-hook 'mdw-text-mode t)
517
518 ;;;----- TeX stuff ----------------------------------------------------------
519
520 (setq TeX-output-view-style
521       '(("^dvi$"
522          ("^landscape$" "^pstricks$\\|^pst-\\|^psfrag$")
523          "%(o?)dvips -t landscape %d -o && evince %f")
524         ("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$"
525          "%(o?)dvips %d -o && evince %f")
526         ("^dvi$"
527          ("^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "^landscape$")
528          "%(o?)xdvi %dS -paper a4r -s 0 %d")
529         ("^dvi$" "^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$"
530          "%(o?)xdvi %dS -paper a4 %d")
531         ("^dvi$"
532          ("^a5\\(?:comb\\|paper\\)$" "^landscape$")
533          "%(o?)xdvi %dS -paper a5r -s 0 %d")
534         ("^dvi$" "^a5\\(?:comb\\|paper\\)$" "%(o?)xdvi %dS -paper a5 %d")
535         ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d")
536         ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d")
537         ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d")
538         ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d")
539         ("^dvi$" "." "%(o?)xdvi %dS %d")
540         ("^pdf$" "." "evince %o")
541         ("^html?$" "." "netscape %o")))
542
543 ;;;----- Shell mode ---------------------------------------------------------
544
545 ;; --- Make the shell mode aware of my prompt ---
546
547 (setq shell-prompt-pattern "^[^]#$%>»}\n]*[]#$%>»}] *")
548 (setq comint-password-prompt-regexp
549       (concat "\\(\\([Oo]ld \\|[Nn]ew \\|[a-zA-Z0-9_]*'s \\|^\\)"
550               "[Pp]assword\\|pass phrase\\):\\s *\\'"))
551
552 ;; --- Notice passwords, and make C-a work right ---
553
554 (add-hook 'shell-mode-hook #'mdw-sh-mode-setup)
555
556 (add-hook 'term-mode-hook #'mdw-term-mode-setup)
557
558 ;;;----- Finishing touches --------------------------------------------------
559
560 (trap (select-window mdw-init-window))
561 (provide 'emacs-init)
562
563 ;;;----- That's all, folks --------------------------------------------------