1 ;;; -*- mode: emacs-lisp; coding: utf-8 -*-
3 ;;; Emacs configuration file
5 ;;; (c) 1996-1999 Mark Wooding
8 ;;;----- Licensing notice ---------------------------------------------------
10 ;;; This program is free software; you can redistribute it and/or modify
11 ;;; it under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 2 of the License, or
13 ;;; (at your option) any later version.
15 ;;; This program is distributed in the hope that it will be useful,
16 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with this program; if not, write to the Free Software
22 ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
24 (setq load-path (nconc load-path (list "~/lib/emacs")))
27 ;;;----- Some random initialisation -----------------------------------------
29 (setq mdw-init-window (selected-window))
31 ;; --- Load some other bits of code ---
33 (maybe-autoload 'cc-mode "cc-mode" nil t)
34 (maybe-autoload 'rexx-mode "rexx-mode" nil t)
35 (maybe-autoload 'cvs-update "pcl-cvs" nil t)
36 (maybe-autoload 'debian-changelog-mode "debian-changelog-mode" nil t)
37 (maybe-autoload 'git-status "git" nil t)
38 (maybe-autoload 'git-blame-mode "git-blame" nil t)
39 (maybe-autoload 'stgit "stgit" nil t)
40 (and (library-exists-p "vc-git")
41 (not (memq 'GIT vc-handled-backends))
42 (setq vc-handled-backends (cons 'GIT vc-handled-backends)))
43 (and (library-exists-p "quilt")
44 (not mdw-fast-startup)
47 (trap (or mdw-fast-startup (require 'tex-site)))
49 ;; --- Skeleton stuff ---
51 (trap (or mdw-fast-startup (require 'skel-init)))
53 ;; --- Window system-dependent things ---
56 (trap (show-paren-mode t))
57 (or window-system (menu-bar-mode -1))
59 ;; --- Temporary directory handling ---
61 (defun mdw-check-dir-exists (dir)
63 (file-directory-p dir)
65 (setq tmpdir (or (mdw-check-dir-exists (getenv "TMPDIR"))
66 (mdw-check-dir-exists (format "/tmp/%s" (user-login-name)))
69 ;; --- Emacs server behaviour ---
73 (setq server-temp-file-regexp (concat "^" tmpdir "\\|/draft$"))))
75 ;; --- Control backup behaviour ---
77 (setq backup-by-copying nil)
78 (setq backup-by-copying-when-linked t)
79 (setq backup-by-copying-when-mismatch t)
81 (setq mdw-backup-disable-regexps
82 '("/\\.git/COMMIT_EDITMSG$"
83 "/\\.stgit\\(-edit\\.txt\\|msg\\.txt\\|\\.msg\\)$"))
85 ;; --- Safe variables ---
87 (setq safe-local-variable-values
88 '((make-backup-files . nil)))
90 ;; --- Calculator fiddling ---
92 (setq calc-settings-file "~/.emacs-calc")
93 (load calc-settings-file)
95 ;; ---- Some mail and news configuration ---
97 (setq mail-from-style 'parens)
98 (setq mail-signature t)
99 (setq mail-yank-prefix "> ")
100 (setq mail-archive-file-name "~/Mail/sent")
102 (setq rmail-display-summary t)
103 (setq rmail-file-name "~/Mail/rmail")
105 ;; --- Internationalization twiddling ---
108 ;; Have top-bit-set characters work properly in terminals.
109 (let ((im (current-input-mode)))
110 (apply #'set-input-mode
111 (nconc (list (nth 0 im) (nth 1 im) 0) (nthcdr 3 im)))))
113 ;; --- Don't disable any commands ---
115 (mapatoms #'(lambda (sym) (put sym 'disabled nil)))
117 ;; --- Split a wide window ---
121 ;; --- Postscript printing ---
123 (setq ps-paper-type 'a4
126 ps-number-of-columns 3
127 ps-font-family 'Courier
130 ;; --- Splash screen stuff ---
133 (setq inhibit-splash-screen t
134 inhibit-startup-message t))
136 ;; --- Other goodies ---
138 (trap (resize-minibuffer-mode 1)) ;Make minibuffer grow dynamically
139 (auto-compression-mode 1) ;Enable automatic compression
140 (setq dabbrev-case-replace nil) ;Retain case when completing
141 (setq next-line-add-newlines nil) ;Don't add weird newlines
142 (setq split-height-threshold 45) ;Reuse windows where sensible
143 (setq display-buffer-reuse-frames nil ;Don't confuse me by showing buffers
144 iswitchb-default-method 'samewindow) ;in other random frames
145 (setq dired-deletion-confirmer ;Make deletion easier in dired
146 (symbol-function 'y-or-n-p))
147 (setq dired-listing-switches "-alF") ;Do `ls -F' things in dired windows
148 (setq wdired-allow-to-change-permissions t)
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 woman-use-own-frame nil) ;Keep man pages somewhere sensible
155 (setq diff-switches "-u" ;I like reading unified diffs
156 cvs-diff-flags (list diff-switches))
157 (setq echo-keystrokes 10) ;Long delay before keystrokes echo
158 (setq ange-ftp-ftp-program-name "pftp") ;Use passive FTP
159 (setq find-ls-option ;Build file lists efficiently
160 '("-print0 | xargs -0r ls -ld" . "ld"))
161 (setq bookmark-save-flag 0) ;Save bookmarks automatically
162 (setq Info-fontify-maximum-menu-size 60000)
163 (setq set-mark-command-repeat-pop t)
164 (setq ispell-program-name "aspell"
165 ispell-local-dictionary "en_GB-ize-w_accents"
166 flyspell-default-dictionary "en_GB-ize-w_accents"
167 ispell-silently-savep t)
170 (setq uniquify-buffer-name-style 'post-forward-angle-brackets)
171 (setq uniquify-after-kill-buffer-p t))
172 (transient-mark-mode t)
176 (trap (or mdw-fast-startup (global-auto-revert-mode t)))
177 (setq psgml-html-build-new-buffer nil)
179 (defvar mdw-black-background t)
181 (eval-after-load "outline" '(require 'foldout))
183 (setq cltl2-root-url (mdw-config 'cltl-url))
184 (setq common-lisp-hyperspec-root (mdw-config 'hyperspec-url))
186 ;;;----- W3 and URL fetching stuff ------------------------------------------
188 (let ((proxy (mdw-config 'http-proxy)))
189 (setq url-proxy-services
192 ("gopher" . ,proxy))))
193 (setq url-cookie-untrusted-urls '("."))
195 (setq browse-url-browser-function (mdw-good-url-browser)
196 browse-url-mozilla-program "firefox")
198 (setq w3m-default-display-inline-images t)
200 (setq w3-do-incremental-display t
201 w3-use-menus '(file edit view go bookmark options
202 buffers style search emacs nil help)
203 w3-display-inline-image t
206 ;;;----- Calendar configuration ---------------------------------------------
208 (setq diary-file "~/etc/diary")
210 ;; --- Trivial stuff for the sunrise/sunset calculations ---
212 (setq calendar-latitude 52.2)
213 (setq calendar-longitude 0.1)
214 (setq calendar-location-name "Cambridge, UK")
218 (and (not mdw-fast-startup)
221 (setq other-holidays (append english-and-welsh-bank-holidays
224 ;; --- Date format fiddling ---
226 (setq european-calendar-style t)
228 (setq diary-date-forms '((day "[-/]" month "[^-/0-9]")
229 (day " *" monthname "[ \t]*\\(\^M\\|\n\\)")
230 (backup day " *" monthname "\\W+\\<[^*0-9]")
231 (day "[-/]" month "[-/]" year "[^0-9]")
232 (day " *" monthname " *" year "[^0-9]")
233 (year "[-/]" month "[-/]" day "[^0-9]")
236 ;; --- Fancy diary handling ---
238 (add-hook 'diary-display-hook 'fancy-diary-display)
239 (setq diary-list-include-blanks t)
240 (add-hook 'list-diary-entries-hook 'sort-diary-entries t)
241 (add-hook 'list-diary-entries-hook 'include-other-diary-files)
242 (add-hook 'mark-diary-entries-hook 'mark-included-diary-files)
244 ;; --- Appointment management ---
246 (add-hook 'diary-hook 'appt-make-list)
247 (setq appt-issue-message t)
248 (setq appt-display-interval 3)
249 (setq appt-message-warning-time 10)
251 ;; --- Cosmetic stuff ---
253 (setq display-time-24hr-format t)
257 (let ((view-diary-entries-initially t))
260 ;;;----- MailCrypt ----------------------------------------------------------
262 ;; --- Define more mode hooks for MailCrypt ---
265 '((mdwmail-mode (encrypt . mdwmail-mc-encrypt)
266 (sign . mdwmail-mc-sign))))
268 ;; --- Load the MailCrypt support ---
271 (and (string-match "linux" (symbol-name system-type))
272 (not mdw-fast-startup)
273 (progn (require 'mailcrypt-init)
275 (setq mc-default-scheme 'mc-scheme-gpg)
276 (setq mc-pgp-user-id "mdw-nsict-pgp")
277 (setq mc-gpg-user-id "mdw-nsict-gpg")
278 (setq mc-modes-alist (append mc-modes-alist mdw-mc-modes))
279 (setq mc-pgp-always-sign t)
280 (setq mc-gpg-always-sign t)
281 (setq mc-always-replace 'never)
282 (setq mc-passwd-timeout 3600)
283 (setq mc-temp-directory tmpdir)
284 (setq mc-modes-alist (append mc-modes-alist mdw-mc-modes))
285 (define-key mc-write-mode-map "\C-c/S" 'mc-sign-region)
286 (define-key mc-write-mode-map "\C-c/E" 'mc-encrypt-region)
287 (add-hook 'text-mode-hook 'mc-install-write-mode))))
289 ;;;----- Other common declarations ------------------------------------------
291 ;; --- Default frame size ---
293 (setq default-frame-alist
297 (vertical-scroll-bars . right))
299 '((cursor-type . bar)
303 (scroll-bar-width . 15)))
304 '((cursor-color . "red"))
305 (if mdw-black-background
306 '((background-color . "black")
307 (foreground-color . "white")
308 (background-mode . dark))
309 '((background-mode . light)))
310 (and (eq window-system 'pm)
311 '((font . "-os2-System VIO-medium-r-normal--*-40-*-*-m-*-cp850")
312 (menu-font . "8.Helv")
313 (background-color . "lightgrey")))
314 '((transparency . t))
315 default-frame-alist))
317 ;; --- Other frame fiddling ---
319 (setq frame-title-format '("" invocation-name "@" system-name ": %b"))
321 ;; --- Global keymap changes ---
324 (windmove-default-keybindings))
325 (setq windmove-wrap-around t)
326 (trap (iswitchb-mode))
327 (global-set-key [?\C-x ?w left] 'windmove-left)
328 (global-set-key [?\C-x ?w ?h] 'windmove-left)
329 (global-set-key [?\C-x ?w up] 'windmove-up)
330 (global-set-key [?\C-x ?w ?k] 'windmove-up)
331 (global-set-key [?\C-x ?w down] 'windmove-down)
332 (global-set-key [?\C-x ?w ?j] 'windmove-down)
333 (global-set-key [?\C-x ?w right] 'windmove-right)
334 (global-set-key [?\C-x ?w ?l] 'windmove-right)
335 (global-set-key [?\C-x ?g ?l] 'org-store-link)
336 (global-set-key [?\C-x ?g ?a] 'org-agenda)
337 (global-set-key [?\M-#] 'calc-dispatch)
338 (global-set-key [?\C-x ?/] 'auto-fill-mode)
339 (global-set-key [?\C-x ?w ?d] 'mdw-divvy-window)
340 (global-set-key [insertchar] 'overwrite-mode)
341 (global-set-key [?\C-x ?m] 'vm-mail)
342 (global-set-key [?\C-x ?\C-n] 'skel-create-file)
343 (global-set-key [?\C-x ?4 ?n] 'skel-create-file-other-window)
344 (global-set-key [?\C-x ?5 ?n] 'skel-create-file-other-frame)
345 (global-set-key [delete] 'delete-char)
346 (global-set-key [?\M-q] 'mdw-fill-paragraph)
347 (global-set-key [?\C-h ?\C-m] 'manual-entry)
348 (global-set-key [C-M-backspace] 'backward-kill-sexp)
349 (global-set-key [mode-line C-mouse-1] 'mouse-tear-off-window)
350 (global-set-key [vertical-scroll-bar C-down-mouse-1]
351 'mouse-drag-vertical-line)
352 (global-set-key [vertical-scroll-bar C-mouse-1]
353 #'(lambda () (interactive)))
355 ;; --- Recognising types of files ---
357 (setq auto-mode-alist
358 (append `(("\\.p[lm]$" . perl-mode)
359 ("\\.m$" . objc-mode)
361 ("\\.cs" . csharp-mode)
362 ("\\.org$" . org-mode)
363 ;; ("/[ch]/" . c-mode)
365 "\\.stgit\\.msg" "\\|"
366 "\\.git/COMMIT_EDITMSG" "\\|"
367 "svn-commit\\.tmp" "\\|"
368 "svk-commit[^/.]*\\.tmp"
371 (,(concat "^" tmpdir "/\\("
372 "svk-commit[^/.]*\\.tmp" "\\|"
373 "gitci\\.[^/.]*" "\\|"
374 "cvs[^/.]\\{6\\}" "\\|"
375 "quilt_header\.[^/.]\\{6\\}"
378 ("\\.calc?$" . apcalc-mode)
379 ("/src/linux/.*\\.\\(c\\|h\\|cc\\)$" . linux-c-mode)
380 ("/\\(s\\|sh\\)/" . arm-assembler-mode)
381 ("\\.\\(cmd\\|exec\\|rexx\\)$" . rexx-mode)
382 ("\\.st$" . smalltalk-mode)
383 ("\\.msgs$" . messages-mode)
384 ("/all-cmds\\.in$" . cpp-messages-mode)
385 ("\\.\\(tex\\|dtx\\)$" . latex-mode)
386 ("\\.gc$" . haskell.-mode)
387 (,(concat "^" (getenv "HOME") "/News/") . mdwmail-mode)
388 (,(concat "^" tmpdir "/\\(SLRN\\|snd\\|pico\\)")
392 (setq interpreter-mode-alist
393 (append `(("runlisp" . lisp-mode))
394 interpreter-mode-alist))
396 (setq completion-ignored-extensions
397 (append `(".hc" ".hi") completion-ignored-extensions))
399 ;; --- Some common local definitions ---
401 (make-variable-buffer-local 'mdw-auto-indent)
403 (mapcar (lambda (hook) (add-hook hook 'mdw-misc-mode-config))
404 '(c-mode-hook c++-mode-hook objc-mode-hook java-mode-hook
405 perl-mode-hook cperl-mode-hook python-mode-hook awk-mode-hook
406 tcl-mode-hook asm-mode-hook
407 TeX-mode-hook LaTeX-mode-hook TeXinfo-mode-hook
408 tex-mode-hook latex-mode-hook texinfo-mode-hook
409 emacs-lisp-mode-hook scheme-mode-hook
410 lisp-mode-hook lisp-interaction-mode-hook inferior-lisp-mode-hook
412 sml-mode-hook haskell-mode-hook
413 smalltalk-mode-hook rexx-mode-hook
414 arm-assembler-mode-hook))
416 (global-font-lock-mode t)
417 (defalias 'perl-mode 'cperl-mode)
419 ;;;----- Rootly editingness -------------------------------------------------
421 (eval-after-load "tramp"
426 (tramp-connection-function tramp-open-connection-su)
427 (tramp-remote-sh "/bin/sh")
428 (tramp-login-program "become")
429 (tramp-copy-program nil)
430 (tramp-copy-args nil)
431 (tramp-copy-keep-date-arg nil)
432 (tramp-login-args ("TERM=dumb" "%u")))
434 (tramp-connection-function tramp-open-connection-su)
435 (tramp-login-program "really")
436 (tramp-login-args ("-u" "%u" "--"
437 "env" "TERM=dumb" "/bin/sh"))
438 (tramp-copy-program nil)
439 (tramp-copy-args nil)
440 (tramp-copy-keep-date-arg nil)
441 (tramp-remote-sh "/bin/sh"))
443 (setq tramp-multi-connection-function-alist
445 '(("bc" tramp-multi-connect-su "become TERM=dumb %u%n"))
446 '(("r" tramp-multi-connect-su "really -u %u%n"))
447 tramp-multi-connection-function-alist))
448 (setq tramp-default-method "ssh")
449 (setq tramp-default-method-alist
450 `(("\\`localhost\\'" ""
451 ,(cond ((executable-find "become") "become")
452 ((executable-find "really") "really")
455 ;;;----- General fontification ----------------------------------------------
457 ;; --- Configure lazy fontification ---
459 (and (fboundp 'lazy-lock-mode)
460 (setq font-lock-support-mode 'lazy-lock-mode))
461 ; (setq lazy-lock-defer-contextually t)
462 (setq lazy-lock-defer-time nil)
463 (setq font-lock-maximum-decoration 3)
464 (setq lazy-lock-minimum-size 0)
465 (setq lazy-lock-stealth-time 5)
466 (setq lazy-lock-stealth-lines 100)
467 (setq lazy-lock-stealth-verbose t)
469 (add-hook 'after-make-frame-functions 'mdw-do-set-font)
470 (add-hook 'term-setup-hook (lambda () (mdw-do-set-font (selected-frame))))
471 (add-hook 'window-setup-hook (lambda () (mdw-do-set-font (selected-frame))))
473 (add-hook 'c-mode-hook 'mdw-fontify-c-and-c++ t)
474 (add-hook 'objc-mode-hook 'mdw-fontify-c-and-c++ t)
475 (add-hook 'c++-mode-hook 'mdw-fontify-c-and-c++ t)
476 (add-hook 'linux-c-mode-hook #'(lambda () (setq c-basic-offset 8)))
477 (add-hook 'asm-mode-hook 'mdw-fontify-asm t)
479 (add-hook 'apcalc-mode-hook 'mdw-misc-mode-config t)
480 (add-hook 'apcalc-mode-hook 'mdw-fontify-apcalc t)
482 (add-hook 'java-mode-hook 'mdw-fontify-java t)
484 (add-hook 'awk-mode-hook 'mdw-fontify-awk t)
486 (add-hook 'perl-mode-hook 'mdw-fontify-perl t)
487 (add-hook 'cperl-mode-hook 'mdw-fontify-perl t)
489 (setq-default py-indent-offset 2)
490 (add-hook 'python-mode-hook 'mdw-fontify-python t)
492 (setq-default tcl-indent-level 2)
493 (add-hook 'tcl-mode-hook 'mdw-fontify-tcl t)
495 (add-hook 'rexx-mode-hook 'mdw-fontify-rexx t)
497 (setq sml-nested-if-indent t)
498 (setq sml-case-indent nil)
499 (setq sml-indent-level 4)
500 (setq sml-type-of-indent nil)
501 (add-hook 'sml-mode-hook 'mdw-fontify-sml t)
503 (add-hook 'haskell-mode-hook 'mdw-fontify-haskell t)
504 (setq-default haskell-indent-offset 2)
506 (add-hook 'texinfo-mode-hook 'mdw-fontify-texinfo t)
507 (add-hook 'TeXinfo-mode-hook 'mdw-fontify-texinfo t)
509 (setq LaTeX-table-label "tbl:")
510 (setq-default TeX-master nil)
511 ;; (setq TeX-parse-self t)
512 ;; (setq TeX-auto-save t)
513 (setq TeX-auto-untabify nil)
514 (add-hook 'TeX-mode-hook 'mdw-fontify-tex t)
515 (add-hook 'tex-mode-hook 'mdw-fontify-tex t)
516 (add-hook 'LaTeX-mode-hook 'mdw-fontify-tex t)
517 (add-hook 'latex-mode-hook 'mdw-fontify-tex t)
519 (add-hook 'sh-mode-hook #'mdw-setup-sh-script-mode)
520 (add-hook 'autoconf-mode-hook #'mdw-setup-m4)
521 (add-hook 'm4-mode-hook #'mdw-setup-m4)
523 (add-hook 'smalltalk-mode-hook 'mdw-fontify-smalltalk t)
524 (add-hook 'smalltalk-mode-hook 'mdw-setup-smalltalk t)
526 (add-hook 'emacs-lisp-mode-hook 'mdw-fontify-lispy t)
527 (add-hook 'scheme-mode-hook 'mdw-fontify-lispy t)
528 (add-hook 'lisp-mode-hook 'mdw-fontify-lispy t)
529 (add-hook 'inferior-lisp-mode-hook 'mdw-fontify-lispy t)
530 (add-hook 'lisp-interaction-mode-hook 'mdw-fontify-lispy t)
531 (add-hook 'slime-repl-mode-hook 'mdw-fontify-lispy t)
532 (add-hook 'lisp-mode-hook 'mdw-common-lisp-indent t)
533 (add-hook 'inferior-lisp-mode-hook
535 (local-set-key "\C-m" 'comint-send-and-indent)) t)
537 (add-hook 'text-mode-hook 'mdw-text-mode t)
539 ;;;----- TeX stuff ----------------------------------------------------------
541 (setq TeX-output-view-style
543 ("^landscape$" "^pstricks$\\|^pst-\\|^psfrag$")
544 "%(o?)dvips -t landscape %d -o && evince %f")
545 ("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$"
546 "%(o?)dvips %d -o && evince %f")
548 ("^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "^landscape$")
549 "%(o?)xdvi %dS -paper a4r -s 0 %d")
550 ("^dvi$" "^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$"
551 "%(o?)xdvi %dS -paper a4 %d")
553 ("^a5\\(?:comb\\|paper\\)$" "^landscape$")
554 "%(o?)xdvi %dS -paper a5r -s 0 %d")
555 ("^dvi$" "^a5\\(?:comb\\|paper\\)$" "%(o?)xdvi %dS -paper a5 %d")
556 ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d")
557 ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d")
558 ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d")
559 ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d")
560 ("^dvi$" "." "%(o?)xdvi %dS %d")
561 ("^pdf$" "." "evince %o")
562 ("^html?$" "." "netscape %o")))
564 ;;;----- SLIME setup --------------------------------------------------------
567 (if (not mdw-fast-startup)
569 (require 'slime-autoloads)
570 (slime-setup '(slime-autodoc slime-c-p-c)))))
572 (let ((stuff '((cmucl ("cmucl"))
573 (sbcl ("sbcl") :coding-system utf-8-unix)
574 (clisp ("clisp") :coding-system utf-8-unix))))
575 (or (boundp 'slime-lisp-implementations)
576 (setq slime-lisp-implementations nil))
578 (let* ((head (car stuff))
579 (found (assq (car head) slime-lisp-implementations)))
580 (setq stuff (cdr stuff))
582 (rplacd found (cdr head))
583 (setq slime-lisp-implementations
584 (cons head slime-lisp-implementations))))))
585 (setq slime-default-lisp 'sbcl)
587 ;;;----- Shell mode ---------------------------------------------------------
589 ;; --- Make the shell mode aware of my prompt ---
591 (setq shell-prompt-pattern "^[^]#$%>»}\n]*[]#$%>»}] *")
592 (setq comint-password-prompt-regexp
593 (concat "\\(\\([Oo]ld \\|[Nn]ew \\|[a-zA-Z0-9_]*'s \\|^\\)"
594 "[Pp]assword\\|pass phrase\\):\\s *\\'"))
596 ;; --- Notice passwords, and make C-a work right ---
598 (add-hook 'shell-mode-hook #'mdw-sh-mode-setup)
600 (add-hook 'term-mode-hook #'mdw-term-mode-setup)
602 ;;;----- Finishing touches --------------------------------------------------
604 (trap (select-window mdw-init-window))
605 (provide 'emacs-init)
607 ;;;----- That's all, folks --------------------------------------------------