Mercurial > hg > xemacs
annotate pers-init.el @ 39:f593eacb57b0
needed now
author | Henry S Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Tue, 12 Dec 2023 10:28:33 +0000 |
parents | fc30f30d88d7 |
children | eee08de75336 |
rev | line source |
---|---|
6 | 1 ;;; GNU Emacs init file for Henry Thompson |
2 ;;; This part shared between all hosts | |
3 ;;; This part is my personal stuff, not for other incarnations | |
4 ;;; initialisation file for Emacs, that is, (l)emacs and epoch common | |
5 ;;; Last edited: Fri Sep 25 09:22:22 1992 | |
6 ;;; Edit history since port: made load-path not site-dependant | |
7 ;;; split into common-init for all my incarnations and pers-init for private | |
8 ;;; added lemacs compatibility | |
9 | |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
10 ;;; HACK to deal with current x-crash workaround that I use a tty-launched |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
11 ;;; xemacs via gnuclient from an X environment |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
12 ;;; Not sure this is still needed 2023-10-07 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
13 (if (and (eq |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
14 (device-type (frame-device (get-frame-for-buffer (current-buffer)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
15 'x) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
16 (not (getenv "DISPLAY"))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
17 (progn (message "setting DISPLAY in env") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
18 (setenv "DISPLAY" ":0"))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
19 |
6 | 20 ;;; mail stuff |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
21 (site-caseq (edin |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
22 (setq mail-archive-file-name (concat "/disk/scratch/mail/cpy/general/" |
37 | 23 (format-time-string |
24 "%Y-%m" (current-time)) | |
25 ".mbox"))) | |
36
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
26 (t (setq mail-archive-file-name "~/mail/cpy/general"))) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
27 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
28 |
6 | 29 (setq rmail-dont-reply-to-names "hthompso*\\|h\\.thompso*\\|ht@*" ) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
30 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
31 (site-caseq (edin |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
32 (setq rmail-show-mime nil) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
33 (set-default 'ht-last-file (expand-file-name "/disk/scratch/mail/")) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
34 (setq ht-diary-file-name "/disk/scratch/mail/diary.babyl") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
35 (setq user-mail-address "ht@inf.ed.ac.uk") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
36 (setq mail-append-host "inf.ed.ac.uk") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
37 (setq mail-host-address "inf.ed.ac.uk"))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
38 |
6 | 39 (setq user-full-name "Henry S. Thompson") |
40 | |
41 ;; new mail hackery | |
42 (site-caseq ((edin ircs ldc) | |
43 (setq rmail-spool-directory (file-name-as-directory | |
44 (concat rmail-spool-directory | |
45 "ht-mail"))))) | |
46 ;; don't know why this is necessary | |
47 (site-caseq ((edin) | |
48 (setq rmail-primary-inbox-list | |
49 (list (concat rmail-spool-directory "ht"))))) | |
50 | |
51 (setq vc-command-messages t) | |
52 | |
53 (setq minibuffer-max-depth nil) | |
54 (defun run-kcl () | |
55 "Run an inferior kcl process" | |
56 (interactive) | |
57 (switch-to-buffer (make-shell "kcl" "kcl")) | |
58 (inferior-lisp-mode)) | |
59 | |
60 (require 'mdn-extras) | |
61 (setq auto-mode-alist | |
62 (append '(("/perl/" . perl-mode) | |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
63 ("\\.scm$" . scheme-mode) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
64 ("\\.dsl$" . lisp-mode)) |
6 | 65 auto-mode-alist)) |
24 | 66 (setq inferior-lisp-program "scheme") |
6 | 67 ;;; for scheme |
68 (put 'letrec 'lisp-indent-function 1) | |
69 (put 'case 'lisp-indent-function 1) | |
70 | |
71 (site-caseq (parc (nconc load-path '("/import/local/emacs/gnus-3.13/")) | |
72 (setq rmail-primary-inbox-list | |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
73 '("~/mbox" "/net/piglet/usr/spool/mail/$USER")))) |
6 | 74 |
75 (defun run-sicstus () | |
76 "Run an inferior Prolog process, input and output via buffer *prolog*." | |
77 (interactive) | |
78 (if (not (boundp 'prolog-mode-map)) | |
79 (let ((load-path (cons | |
80 (site-caseq (parc "/import/prolog-1.8/emacs") | |
81 (edin "??")) | |
82 load-path))) | |
83 (load "prolog" nil t))) | |
84 (require 'shell) | |
85 (switch-to-buffer (make-shell "prolog" (site-caseq (edin "sicstus") | |
86 (parc "prolog")))) | |
87 (inferior-prolog-mode)) | |
88 | |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
89 (require 'hist) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
90 (rplacd (assoc "*shell*" hk-pat-table) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
91 "[a-z]+<[0-9]+>: ") |
6 | 92 |
93 ;; turn off suspend-emacs -- use pause-emacs (^X.) instead | |
94 (global-unset-key "\C-Z") | |
95 (global-unset-key "\C-x\C-z") | |
96 | |
97 (global-set-key "\C-xl" (function goto-line)) | |
98 | |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
99 (require 'repl-comment) |
6 | 100 |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
101 (require 'compress) |
6 | 102 |
103 (if (string-match "Lucid" emacs-version) | |
104 (progn | |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
105 (require 'lemacs-compat))) |
6 | 106 |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
107 (if window-system |
6 | 108 (progn |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
109 (add-hook 'sh-mode-hook '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
110 (font-lock-mode 1))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
111 (add-hook 'perl-mode-hook '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
112 (font-lock-mode 1))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
113 (add-hook 'emacs-lisp-mode-hook '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
114 (font-lock-mode 1))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
115 (add-hook 'lisp-mode-hook '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
116 (font-lock-mode 1))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
117 (add-hook 'sgml-mode-hook '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
118 (if (not |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
119 (boundp 'sgml-font-lock-keywords)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
120 (load "sgml-font-lock-keywords" t t)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
121 (setq adaptive-fill-mode nil) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
122 (font-lock-mode 1) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
123 )) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
124 (add-hook 'c-mode-hook '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
125 (font-lock-mode 1))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
126 (add-hook 'c++-mode-hook '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
127 (font-lock-mode 1))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
128 (add-hook 'scheme-mode-hook |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
129 '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
130 (setq |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
131 scheme-font-lock-keywords |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
132 (if (or |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
133 (boundp 'lisp-font-lock-keywords) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
134 (load "lisp-font-lock-keywords" t t)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
135 lisp-font-lock-keywords)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
136 (font-lock-mode 1))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
137 (add-hook 'python-mode-hook '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
138 (font-lock-mode 1))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
139 (setq sgml-insert-missing-element-comment nil) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
140 (load "psgml" nil t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
141 (load "psgml-edit" nil t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
142 ;; (load "xml-hack" nil t) |
6 | 143 ; (setq sgml-catalog-files '("CATALOG" "f:/lib/sgml/catalog")) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
144 (if (string-match "i386" (emacs-version)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
145 (progn (defun win32-get-clipboard-data-cmd () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
146 (interactive)(insert (win32-get-clipboard-data))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
147 (global-set-key |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
148 "\C-x\C-y" 'win32-get-clipboard-data-cmd))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
149 )) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
150 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
151 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
152 (site-caseq (edin |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
153 (setq sgml-catalog-files '("catalog" "/afs/inf.ed.ac.uk/user/h/ht/lib/sgml/catalog")))) |
19 | 154 |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
155 (if (string-match "Lucid" emacs-version) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
156 ;; lemacs only goes here |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
157 (progn |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
158 (message "lem") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
159 ;; DICE comes here 2012-01-13 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
160 (setq package-get-remove-copy nil) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
161 (require 'mail-abbrevs) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
162 (setq bbdb-north-american-phone-numbers-p nil) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
163 (setq bbdb-use-pop-up nil) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
164 (setq bbdb-complete-name-allow-cycling t |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
165 bbdb-completion-type 'primary-or-name) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
166 (setq bbdb-quiet-about-name-mismatches t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
167 (setq bbdb-always-add-addresses t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
168 (setq bbdb-new-nets-always-primary t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
169 (site-caseq (edin |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
170 (setq bbdb-file "/disk/scratch/mail/.bbdb"))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
171 (setq bbdb-hashtable-size 24203) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
172 (require 'bbdb) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
173 ;(require 'bbdb-rmail) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
174 (require 'bbdb-com) ; to fix auto-fill |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
175 (setq mail-use-rfc822 nil) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
176 (add-hook 'gnus-summary-mode-hook |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
177 (function (lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
178 (make-local-variable 'mail-use-rfc822) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
179 (setq mail-use-rfc822 t)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
180 (if (>= emacs-major-version 21) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
181 (progn |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
182 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
183 (add-hook 'gnus-startup-hook 'bbdb-insinuate-message))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
184 (fset 'bbdb-auto-fill-function (lambda () t)) ; ditto |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
185 (fmakunbound 'bbdb-orig-rmail-expunge) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
186 ;(add-hook 'rmail-mode-hook 'bbdb-insinuate-rmail) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
187 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
188 (add-hook 'mail-setup-hook 'bbdb-insinuate-sendmail) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
189 (setq bbdb-dwim-net-address-allow-redundancy t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
190 (add-hook 'mail-setup-hook 'bbdb-define-all-aliases) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
191 (add-hook 'gnus-message-setup-hook 'bbdb-define-all-aliases) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
192 (if (not (fboundp 'define-mail-abbrev)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
193 ;; fix a bug which crashes occasionally -- see also |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
194 ;; bbdb-com |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
195 (progn |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
196 (require 'sendmail) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
197 ;(defadvice sendmail-pre-abbrev-expand-hook |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
198 ; (before bbdb-rebuilt-all-aliases activate) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
199 ; (bbdb-rebuilt-all-aliases)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
200 )) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
201 (defun gnuserv-start-maybe () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
202 (if (not (frame-live-p gnuserv-frame)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
203 (gnuserv-start))) |
24 | 204 ;;; (require 'itimer) |
205 ;;; (start-itimer "gsr" 'gnuserv-start-maybe | |
206 ;;; 1200 1200 nil nil) | |
6 | 207 |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
208 (if window-system |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
209 (progn |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
210 (message "window-system-1") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
211 ;; DICE comes here 2012-01-13 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
212 (require 'highlight-headers) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
213 (defun rmail-fontify-headers () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
214 (highlight-headers (point-min) (point-max) t)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
215 (add-hook 'rmail-show-message-hook 'rmail-fontify-headers) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
216 (setq dired-mode-hook |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
217 '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
218 (font-lock-mode 1) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
219 (define-key dired-mode-map |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
220 [button2] '(lambda (click) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
221 (interactive "e") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
222 (mouse-set-point click) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
223 (dired-advertised-find-file))))) |
36
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
224 (set-face-background 'modeline '((x) . "lightgrey")))) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
225 ;; DICE comes here 2012-01-13 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
226 (load "device-type-hacking" t t) |
36
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
227 ;; override changed default, except in gnus |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
228 (message "dth") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
229 (site-caseq (edin |
36
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
230 (setq highlight-headers-follow-url-function |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
231 'browse-url-firefox |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
232 ) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
233 (setq browse-url-browser-function 'browse-url-firefox) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
234 (defun ht-rooms-setup (&optional arg) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
235 (interactive) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
236 (require 'mail-extras) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
237 (require 'diary) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
238 (let ((scr (selected-frame))) |
6 | 239 ; (sit-for 5) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
240 (load "ht-rooms.config" nil t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
241 (unwind-protect (make-screen-for-room "diary" "0" "+62")) |
6 | 242 ; (sit-for 5) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
243 (unwind-protect (make-screen-for-room "elisp" "-25" "+79")) |
6 | 244 ; (sit-for 5) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
245 (unwind-protect (make-screen-for-room "news" "-50" "+96")) |
6 | 246 ; (sit-for 5) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
247 (unwind-protect (make-screen-for-room "mail" "-75" "+113")) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
248 (sit-for 1) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
249 (delete-screen scr)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
250 (setq ht-default-config (current-window-configuration))))) |
36
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
251 (message "gnus-init") |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
252 (site-caseq ((edin markup maritain) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
253 (require 'gnus-init))) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
254 ) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
255 ;; vanilla v19 goes here |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
256 ;; probably stale/broken |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
257 (message "vanilla") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
258 (if window-system |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
259 (progn |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
260 (message "window-system-2") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
261 (defvar ht-frame-parameter-mods |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
262 '((auto-raise . t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
263 (auto-lower . nil) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
264 (cursor-type . bar))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
265 (nconc |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
266 (site-caseq ((laptop maritain) (list '(height . 35))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
267 (t |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
268 (list |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
269 '(font . |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
270 "-adobe-courier-medium-r-normal--14-*")))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
271 ht-frame-parameter-mods |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
272 ) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
273 ;; if we have X, we have ISO-Latin-1, so |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
274 ;; set char codes 128--255 to display as themselves. |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
275 (require 'disp-table) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
276 (standard-display-8bit 161 255) |
6 | 277 ; (transient-mark-mode t) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
278 ;; hightlight searching in bold |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
279 (setq search-highlight t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
280 (make-face 'isearch) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
281 (copy-face 'bold 'isearch) |
6 | 282 ; (set-face-underline-p 'region t) |
283 ; (set-face-background 'region "white") | |
284 ; (set-face-foreground 'region "black") | |
285 ; (setq c++-font-lock-keywords 'undef) | |
286 ; (setq c-font-lock-keywords 'undef) | |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
287 (modify-frame-parameters |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
288 nil |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
289 ht-frame-parameter-mods) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
290 (setq default-frame-alist |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
291 (append |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
292 ht-frame-parameter-mods default-frame-alist)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
293 ;; fix cut and paste |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
294 (setq interprogram-paste-function nil |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
295 interprogram-cut-function nil) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
296 (defun ht-mouse-set-region (click) "set region and primary selection" |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
297 (interactive "e") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
298 (mouse-set-region click) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
299 (x-set-selection "PRIMARY" (buffer-substring (point)(mark)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
300 (defun ht-mouse-drag-region (click) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
301 "drag region and set primary selection" |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
302 (interactive "e") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
303 (mouse-drag-region click) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
304 (if mark-active |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
305 (x-set-selection "PRIMARY" (buffer-substring (point)(mark))))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
306 (global-set-key [drag-mouse-1] (function ht-mouse-set-region)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
307 (global-set-key [down-mouse-1] (function ht-mouse-drag-region)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
308 (defun ht-mouse-insert-primary (click) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
309 "set point and insert primary selection" |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
310 (interactive "e") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
311 (mouse-set-point click) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
312 (push-mark nil nil t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
313 (insert (x-selection))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
314 (global-set-key [mouse-2] (function ht-mouse-insert-primary)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
315 (setq dired-mode-hook |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
316 '(lambda () |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
317 (font-lock-mode 1) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
318 (define-key dired-mode-map |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
319 [mouse-2] '(lambda (click) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
320 (interactive "e") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
321 (mouse-set-point click) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
322 (dired-advertised-find-file))))) |
6 | 323 |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
324 (defun ht-rooms-setup (&optional arg) |
36
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
325 (interactive) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
326 (require 'mail-extras) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
327 (require 'diary) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
328 (let ((scr (selected-frame))) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
329 ; (sit-for 5) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
330 (load "ht-rooms.config" nil t) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
331 ;; for ecclerig viewed from paul |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
332 (if (eq (device-pixel-width (selected-device)) 1920) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
333 (progn |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
334 (unwind-protect |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
335 (make-screen-for-room "diary" "+1219" "+68")) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
336 (unwind-protect |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
337 (make-screen-for-room "elisp" "+1185" "+102")) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
338 (unwind-protect |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
339 (make-screen-for-room "news" "+1253" "+34"))) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
340 ;; for ecclerig in office |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
341 (unwind-protect (make-screen-for-room "diary" "+1888" "+0")) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
342 (unwind-protect (make-screen-for-room "elisp" "+1888" "+0")) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
343 (unwind-protect (make-screen-for-room "news" "+1223" "+0"))) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
344 (sit-for 1) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
345 (delete-frame scr)) |
642211cbf13a
prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
33
diff
changeset
|
346 (setq ht-default-config (current-window-configuration)))))) |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
347 (setq sgml-insert-missing-element-comment nil) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
348 (load "psgml" nil t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
349 (load "psgml-edit" nil t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
350 (load "xml-hack" nil t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
351 (add-hook 'sgml-mode-hook 'sgml-fix-para) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
352 ;; v18 emacs only was here |
6 | 353 |
24 | 354 (defun ht-rooms-resetup () |
355 (interactive) | |
356 (setq rooms-table nil) | |
357 (setq frames-table nil) | |
358 (ht-rooms-setup)) | |
359 | |
6 | 360 (defun sgml-fix-para () |
361 (setq paragraph-separate | |
362 "</[^>]*>\n\\([ \t]+\\| \\)") | |
363 (setq paragraph-start | |
364 "^[ \t]*</?[A-Za-z._-]+[ >]")) | |
365 | |
24 | 366 (defun highlight-headers-ht-follow-url-netscape (url &optional arg) |
6 | 367 (message "Sending URL to Netscape...") |
368 (save-excursion | |
369 (set-buffer (get-buffer-create "*Shell Command Output*")) | |
370 (erase-buffer) | |
371 (if (equal 0 (call-process "netscape" nil t nil "-display" ":0.0" | |
372 "-remote" | |
373 (concat "openURL(" url ")"))) | |
374 ;; it worked | |
375 nil | |
376 ;; it didn't work, so start a new Netscape process. | |
377 (call-process "netscape" nil 0 nil url))) | |
378 (message "Sending URL to Netscape... done")) | |
379 | |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
380 ;;; Moved from custom.el -- not customisable, I think. . . |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
381 (setq |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
382 ecb-options-version "2.27" |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
383 gnus-treat-display-smileys nil |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
384 gnus-treat-from-picon nil |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
385 gnus-treat-mail-picon nil |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
386 gnus-treat-newsgroups-picon nil |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
387 jde-enable-abbrev-mode t |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
388 package-get-require-signed-base-updates nil |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
389 pgg-passphrase-cache-expiry 36000 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
390 pui-package-install-dest-dir "/afs/inf.ed.ac.uk/user/h/ht/.xemacs/xemacs-packages" |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
391 efs-ftp-program-args '("-i" "-n" "-g" "-v") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
392 efs-use-passive-mode t ; actually turns it _off_ ! |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
393 ) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
394 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
395 (custom-set-faces |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
396 '(font-lock-builtin-face ((((type x mswindows)(class color)(background light))(:foreground "Purple"))(((type tty)(class color))(:foreground "magenta")))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
397 '(font-lock-comment-face ((((type x mswindows)(class color)(background light))(:foreground "blue4"))(((type tty)(class color))(:foreground "blue")))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
398 '(font-lock-constant-face ((((type x mswindows)(class color)(background light))(:foreground "CadetBlue"))(((type tty)(class color))(:foreground "cyan")))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
399 '(font-lock-doc-string-face ((((type x mswindows)(class color)(background light))(:foreground "green4"))(((type tty)(class color))(:foreground "green")))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
400 '(font-lock-function-name-face ((((type x mswindows)(class color)(background light))(:foreground "brown4"))(((type tty)(class color))(:foreground "cyan" :bold)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
401 '(font-lock-keyword-face ((((type x mswindows)(class color)(background light))(:foreground "red4"))(((type tty)(class color))(:foreground "red" :bold)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
402 '(font-lock-preprocessor-face ((((type x mswindows)(class color)(background light))(:foreground "blue3"))(((type tty)(class color))(:foreground "cyan" :bold)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
403 '(font-lock-reference-face ((((type x mswindows)(class color)(background light))(:foreground "red3"))(((type tty)(class color))(:foreground "red")))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
404 '(font-lock-string-face ((((type x mswindows)(class color)(background light))(:foreground "green4"))(((type tty)(class color))(:foreground "green" :bold)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
405 '(font-lock-type-face ((((type x mswindows)(class color)(background light))(:foreground "steelblue"))(((type tty)(class color))(:foreground "cyan" :bold)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
406 '(font-lock-variable-name-face ((((type x mswindows)(class color)(background light))(:foreground "magenta4"))(((type tty)(class color))(:foreground "magenta" :bold)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
407 '(font-lock-warning-face ((((type x mswindows)(class color)(background light))(:foreground "Red" :bold))(((type tty)(class color))(:foreground "red" :bold)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
408 ) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
409 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
410 (custom-set-faces |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
411 '(modeline ( |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
412 (((type x mswindows)(class color)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
413 (:foreground "black" :background "gray80")) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
414 (t |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
415 (:foreground "black" :background "white")))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
416 '(modeline-buffer-id ( |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
417 (((type x mswindows)(class color)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
418 (:foreground "blue4" :background "gray80")) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
419 (((type tty)(class color)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
420 (:foreground "blue" :background "white")) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
421 (t |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
422 (:foreground "black" :background "white" :bold t)))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
423 '(modeline-mousable ( |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
424 (((type x mswindows)(class color)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
425 (:foreground "firebrick" :background "gray80")) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
426 (((type tty)(class color)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
427 (:foreground "red" :background "white")) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
428 (t |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
429 (:foreground "black" :background "white")))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
430 '(modeline-mousable-minor-mode ( |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
431 (((type x mswindows)(class color)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
432 (:foreground "green4" :background "gray80")) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
433 (((type tty)(class color)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
434 (:foreground "green" :background "white" :bold t)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
435 (t |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
436 (:foreground "black" :background "white")))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
437 ) |
6 | 438 |
439 (cd (user-home-directory)) | |
19 | 440 |
24 | 441 (require 'misc) ; used to be in common-init... |
19 | 442 |
443 (ht-custom-size) |