annotate pers-init.el @ 24:0e5b39d2f8bb

trying to clean up Paul vs. Maritain for Cirrus
author ht
date Sat, 07 Oct 2023 10:44:21 +0100
parents 7b2c4ed36302
children cb9b76219c55
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
1 ;;; GNU Emacs init file for Henry Thompson
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
2 ;;; This part shared between all hosts
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
3 ;;; This part is my personal stuff, not for other incarnations
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
4 ;;; initialisation file for Emacs, that is, (l)emacs and epoch common
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
5 ;;; Last edited: Fri Sep 25 09:22:22 1992
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
6 ;;; Edit history since port: made load-path not site-dependant
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
7 ;;; split into common-init for all my incarnations and pers-init for private
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
8 ;;; added lemacs compatibility
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
9
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
10 ;;; mail stuff
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
11 (setq mail-archive-file-name "~/mail/cpy/general")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
12 (setq rmail-dont-reply-to-names "hthompso*\\|h\\.thompso*\\|ht@*" )
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
13 (set-default 'ht-last-file (expand-file-name "~/mail/"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
14 (setq ht-diary-file-name "~/mail/diary.babyl")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
15 (setq mail-append-host "inf.ed.ac.uk")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
16 (setq user-full-name "Henry S. Thompson")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
17 (setq user-mail-address "ht@inf.ed.ac.uk")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
18 (setq mail-host-address "inf.ed.ac.uk")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
19
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
20 ;; new mail hackery
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
21 (site-caseq ((edin ircs ldc)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
22 (setq rmail-spool-directory (file-name-as-directory
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
23 (concat rmail-spool-directory
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
24 "ht-mail")))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
25
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
26 ;; sending mail on the road
21
7b2c4ed36302 for new maritain
ht
parents: 19
diff changeset
27 ;; [moved to mail-from-m.el, which is required by gnus-init.el
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
28
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
29 ;; don't know why this is necessary
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
30 (site-caseq ((edin)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
31 (setq rmail-primary-inbox-list
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
32 (list (concat rmail-spool-directory "ht")))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
33
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
34 ;; Perforce
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
35
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
36 ;;(setq p4-global-server-port "zorg.milowski.com:1666")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
37 ;;(setenv "P4PORT" "zorg.milowski.com:1666")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
38 ;;(setenv "P4CLIENT" "MarkupMan")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
39 ;;(setenv "P4CONFIG" ".p4env")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
40 ;;(load-library "p4")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
41 ;;(setq p4-use-p4config-exclusively t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
42 ;;(p4-set-p4-executable "/c/Program Files/Perforce/p4.exe")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
43 (setq vc-command-messages t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
44
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
45 (setq minibuffer-max-depth nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
46 (defun run-kcl ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
47 "Run an inferior kcl process"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
48 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
49 (switch-to-buffer (make-shell "kcl" "kcl"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
50 (inferior-lisp-mode))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
51
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
52 (require 'mdn-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
53 (setq auto-mode-alist
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
54 (append '(("/perl/" . perl-mode)
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
55 ("\\.scm$" . scheme-mode))
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
56 auto-mode-alist))
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
57 (setq inferior-lisp-program "scheme")
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
58 ;;; for scheme
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
59 (put 'letrec 'lisp-indent-function 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
60 (put 'case 'lisp-indent-function 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
61
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
62 (site-caseq (parc (nconc load-path '("/import/local/emacs/gnus-3.13/"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
63 (setq rmail-primary-inbox-list
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
64 '("~/mbox" "/net/piglet/usr/spool/mail/$USER")))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
65 (edin (setq load-path (cons
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
66 "/home/ht/emacs/shared/gnus-5.0.15/lisp"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
67 load-path))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
68
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
69 (defun run-sicstus ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
70 "Run an inferior Prolog process, input and output via buffer *prolog*."
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
71 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
72 (if (not (boundp 'prolog-mode-map))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
73 (let ((load-path (cons
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
74 (site-caseq (parc "/import/prolog-1.8/emacs")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
75 (edin "??"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
76 load-path)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
77 (load "prolog" nil t)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
78 (require 'shell)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
79 (switch-to-buffer (make-shell "prolog" (site-caseq (edin "sicstus")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
80 (parc "prolog"))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
81 (inferior-prolog-mode))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
82
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
83 (site-caseq ((laptop maritain))
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
84 (t(require 'hist)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
85 (rplacd (assoc "*shell*" hk-pat-table)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
86 "[a-z]+<[0-9]+>: ")))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
87
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
88 ;; turn off suspend-emacs -- use pause-emacs (^X.) instead
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
89 (global-unset-key "\C-Z")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
90 (global-unset-key "\C-x\C-z")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
91
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
92 (global-set-key "\C-xl" (function goto-line))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
93
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
94 ;(require 'repl-comment)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
95
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
96 ;(require 'compress)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
97
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
98 (if (string-match "Lucid" emacs-version)
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
99 (site-caseq ((laptop maritain))
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
100 (t(require 'lemacs-compat))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
101
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
102 (if (boundp 'epoch::version)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
103 ;; epoch only goes here
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
104 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
105 (if (string-match "4\\."emacs-version)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
106 (load "motion4" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
107 (load "motion" nil t))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
108 (redisplay-frame)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
109
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
110 (require 'alarm)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
111 (idle-save 15)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
112
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
113 (defun ht-rooms-setup (&optional arg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
114 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
115 (redisplay-frame)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
116 (require 'mail-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
117 (require 'diary)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
118 (require 'my-news)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
119 (let ((scr (current-frame)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
120 (load "ht-rooms-epoch.config" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
121 (unwind-protect (make-frame-for-room "diary" "-0" "+130"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
122 (unwind-protect (make-frame-for-room "elisp" "-25" "+148"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
123 (unwind-protect (make-frame-for-room "news" "-50" "+166"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
124 (unwind-protect (make-frame-for-room "mail" "-75" "+184"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
125 (epoch::delete-frame scr))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
126 ;; presumably this is now frame local, so not quite the right thing.
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
127 (setq ht-default-config (current-window-configuration)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
128 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
129 (if (string-match "^\\(19\\|2\\)" emacs-version)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
130 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
131 ;; common v19
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
132 (if window-system
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
133 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
134 (add-hook 'sh-mode-hook '(lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
135 (font-lock-mode 1)))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
136 (add-hook 'lsl-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
137 (font-lock-mode 1)))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
138 (add-hook 'perl-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
139 (font-lock-mode 1)))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
140 (add-hook 'emacs-lisp-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
141 (font-lock-mode 1)))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
142 (add-hook 'lisp-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
143 (font-lock-mode 1)))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
144 (add-hook 'sgml-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
145 (if (not
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
146 (boundp 'sgml-font-lock-keywords))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
147 (load "sgml-font-lock-keywords" t t))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
148 (setq adaptive-fill-mode nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
149 (font-lock-mode 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
150 ))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
151 (add-hook 'c-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
152 (font-lock-mode 1)))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
153 (add-hook 'c++-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
154 (font-lock-mode 1)))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
155 (add-hook 'scheme-mode-hook
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
156 '(lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
157 (setq
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
158 scheme-font-lock-keywords
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
159 (if (or
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
160 (boundp 'lisp-font-lock-keywords)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
161 (load "lisp-font-lock-keywords" t t))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
162 lisp-font-lock-keywords))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
163 (font-lock-mode 1)))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
164 (add-hook 'python-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
165 (font-lock-mode 1)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
166 (setq py-python-command "//c/Program Files/Python22/python")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
167 (setq sgml-insert-missing-element-comment nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
168 (load "psgml" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
169 (load "psgml-edit" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
170 ;; (load "xml-hack" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
171 ; (setq sgml-catalog-files '("CATALOG" "f:/lib/sgml/catalog"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
172 (if (string-match "i386" (emacs-version))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
173 (progn (defun win32-get-clipboard-data-cmd ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
174 (interactive)(insert (win32-get-clipboard-data)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
175 (global-set-key
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
176 "\C-x\C-y" 'win32-get-clipboard-data-cmd)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
177 ;; gnus
12
b53b1f1f2d4a *** empty log message ***
ht
parents: 6
diff changeset
178 ; (setq mail-signature t)
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
179
12
b53b1f1f2d4a *** empty log message ***
ht
parents: 6
diff changeset
180 ;; loading gnus postponed to e.g. mail-from-delphix, q.v.
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
181
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
182 ; (require 'gnus-min)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
183 ))
21
7b2c4ed36302 for new maritain
ht
parents: 19
diff changeset
184 (load "gnus-init" nil t)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
185
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
186 ;; (require 'idle)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
187 ;; (idle-save 15)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
188
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
189 (if (string-match "Lucid" emacs-version)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
190 ;; lemacs only goes here
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
191 (progn
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
192 (message "lem")
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
193 (setq bbdb-north-american-phone-numbers-p nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
194 (setq bbdb-use-pop-up nil)
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
195 (require 'mail-abbrevs)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
196 (require 'bbdb)
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
197 ;(require 'bbdb-rmail)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
198 (require 'bbdb-com) ; to fix auto-fill
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
199 (setq mail-use-rfc822 nil)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
200 (add-hook 'gnus-summary-mode-hook
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
201 (function (lambda ()
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
202 (make-local-variable 'mail-use-rfc822)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
203 (setq mail-use-rfc822 t))))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
204 (if (>= emacs-major-version 21)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
205 (progn
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
206 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
207 (add-hook 'gnus-startup-hook 'bbdb-insinuate-message)))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
208 (fset 'bbdb-auto-fill-function (lambda () t)) ; ditto
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
209 (fmakunbound 'bbdb-orig-rmail-expunge)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
210 ;(add-hook 'rmail-mode-hook 'bbdb-insinuate-rmail)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
211 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
212 (add-hook 'mail-setup-hook 'bbdb-insinuate-sendmail)
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
213 (setq bbdb-dwim-net-address-allow-redundancy t)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
214 (add-hook 'mail-setup-hook 'bbdb-define-all-aliases)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
215 (add-hook 'gnus-message-setup-hook 'bbdb-define-all-aliases)
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
216 (if (not (fboundp 'define-mail-abbrev))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
217 ;; fix a bug which crashes occasionally -- see also
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
218 ;; bbdb-com
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
219 (progn
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
220 (require 'sendmail)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
221 ;(defadvice sendmail-pre-abbrev-expand-hook
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
222 ; (before bbdb-rebuilt-all-aliases activate)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
223 ; (bbdb-rebuilt-all-aliases))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
224 ))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
225 (defun gnuserv-start-maybe ()
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
226 (if (not (frame-live-p gnuserv-frame))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
227 (gnuserv-start)))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
228 ;;; (require 'itimer)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
229 ;;; (start-itimer "gsr" 'gnuserv-start-maybe
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
230 ;;; 1200 1200 nil nil)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
231
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
232 (if window-system
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
233 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
234 (require 'highlight-headers)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
235 (defun rmail-fontify-headers ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
236 (highlight-headers (point-min) (point-max) t))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
237 (add-hook 'rmail-show-message-hook 'rmail-fontify-headers)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
238 (setq dired-mode-hook
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
239 '(lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
240 (font-lock-mode 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
241 (define-key dired-mode-map
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
242 [button2] '(lambda (click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
243 (interactive "e")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
244 (mouse-set-point click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
245 (dired-advertised-find-file)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
246 ;; (setq highlight-headers-follow-url-function
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
247 ;; 'highlight-headers-ht-follow-url-netscape
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
248 ;; browse-url-browser-function
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
249 ;;'highlight-headers-ht-follow-url-netscape)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
250 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
251 ;; (load "~rjc/public_html/device-type-hacking.el")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
252 (load "perl-mode" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
253 (defun ht-rooms-setup (&optional arg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
254 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
255 (require 'mail-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
256 (require 'diary)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
257 (require 'my-news)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
258 ;; override changed default, except in gnus
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
259 (setq mail-use-rfc822 nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
260 (add-hook 'gnus-summary-mode-hook
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
261 (function (lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
262 (make-local-variable 'mail-use-rfc822)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
263 (setq mail-use-rfc822 t))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
264 (if (>= emacs-major-version 21)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
265 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
266 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
267 (add-hook 'gnus-startup-hook 'bbdb-insinuate-message)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
268 (defun ht-rooms-setup (&optional arg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
269 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
270 (require 'mail-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
271 (require 'diary)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
272 (let ((scr (selected-frame)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
273 ; (sit-for 5)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
274 (load "ht-rooms.config" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
275 (unwind-protect (make-screen-for-room "diary" "0" "+62"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
276 ; (sit-for 5)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
277 (unwind-protect (make-screen-for-room "elisp" "-25" "+79"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
278 ; (sit-for 5)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
279 (unwind-protect (make-screen-for-room "news" "-50" "+96"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
280 ; (sit-for 5)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
281 (unwind-protect (make-screen-for-room "mail" "-75" "+113"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
282 (sit-for 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
283 (delete-screen scr))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
284 (setq ht-default-config (current-window-configuration)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
285 ;; vanilla v19 goes here
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
286 (if window-system
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
287 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
288 (defvar ht-frame-parameter-mods
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
289 '((auto-raise . t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
290 (auto-lower . nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
291 (cursor-type . bar)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
292 (nconc
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
293 (site-caseq ((laptop maritain) (list '(height . 35)))
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
294 (t
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
295 (list
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
296 '(font .
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
297 "-adobe-courier-medium-r-normal--14-*"))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
298 ht-frame-parameter-mods
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
299 )
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
300 ;; if we have X, we have ISO-Latin-1, so
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
301 ;; set char codes 128--255 to display as themselves.
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
302 (require 'disp-table)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
303 (standard-display-8bit 161 255)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
304 ; (transient-mark-mode t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
305 ;; hightlight searching in bold
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
306 (setq search-highlight t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
307 (make-face 'isearch)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
308 (copy-face 'bold 'isearch)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
309 ; (set-face-underline-p 'region t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
310 ; (set-face-background 'region "white")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
311 ; (set-face-foreground 'region "black")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
312 ; (setq c++-font-lock-keywords 'undef)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
313 ; (setq c-font-lock-keywords 'undef)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
314 (modify-frame-parameters
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
315 nil
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
316 ht-frame-parameter-mods)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
317 (setq default-frame-alist
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
318 (append
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
319 ht-frame-parameter-mods default-frame-alist))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
320 ;; fix cut and paste
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
321 (setq interprogram-paste-function nil
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
322 interprogram-cut-function nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
323 (defun ht-mouse-set-region (click) "set region and primary selection"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
324 (interactive "e")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
325 (mouse-set-region click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
326 (x-set-selection "PRIMARY" (buffer-substring (point)(mark))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
327 (defun ht-mouse-drag-region (click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
328 "drag region and set primary selection"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
329 (interactive "e")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
330 (mouse-drag-region click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
331 (if mark-active
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
332 (x-set-selection "PRIMARY" (buffer-substring (point)(mark)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
333 (global-set-key [drag-mouse-1] (function ht-mouse-set-region))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
334 (global-set-key [down-mouse-1] (function ht-mouse-drag-region))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
335 (defun ht-mouse-insert-primary (click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
336 "set point and insert primary selection"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
337 (interactive "e")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
338 (mouse-set-point click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
339 (push-mark nil nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
340 (insert (x-selection)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
341 (global-set-key [mouse-2] (function ht-mouse-insert-primary))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
342 (setq dired-mode-hook
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
343 '(lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
344 (font-lock-mode 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
345 (define-key dired-mode-map
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
346 [mouse-2] '(lambda (click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
347 (interactive "e")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
348 (mouse-set-point click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
349 (dired-advertised-find-file)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
350
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
351 (defun ht-rooms-setup (&optional arg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
352 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
353 (require 'mail-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
354 (require 'diary)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
355 (require 'my-news)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
356 ;; override changed default, except in gnus
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
357 (setq mail-use-rfc822 nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
358 (add-hook 'gnus-summary-mode-hook
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
359 (function (lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
360 (make-local-variable 'mail-use-rfc822)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
361 (setq mail-use-rfc822 t))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
362 (let ((scr (selected-frame)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
363 (load "ht-rooms.config" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
364 (unwind-protect (make-frame-for-room "elisp" "-25" "-58"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
365 (unwind-protect (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
366 (make-frame-for-room "news" "-50" "-40")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
367 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
368 (unwind-protect (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
369 (make-frame-for-room "mail" "-75" "-22")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
370 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
371 (unwind-protect (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
372 (make-frame-for-room
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
373 "diary"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
374 "-0"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
375 (concat
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
376 "+"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
377 (format
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
378 "%d"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
379 (-
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
380 (cdr
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
381 (assoc
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
382 'top
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
383 (frame-parameters
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
384 (cdr
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
385 (assoc
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
386 "elisp"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
387 frames-table)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
388 18))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
389 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
390 (make-frame-invisible scr))
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
391 (setq ht-default-config (current-window-configuration))))))
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
392 (setq sgml-insert-missing-element-comment nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
393 (add-hook 'sgml-mode-hook 'sgml-fix-para)
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
394 )
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
395 ;; v18 emacs only goes here
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
396 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
397 (require 'compress)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
398 (defun ht-rooms-setup (&optional arg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
399 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
400 (require 'mail-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
401 (require 'diary)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
402 (require 'my-news)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
403 (load "ht-rooms.config" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
404 (setq ht-default-config (current-window-configuration)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
405
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
406 (defun ht-rooms-resetup ()
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
407 (interactive)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
408 (setq rooms-table nil)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
409 (setq frames-table nil)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
410 (ht-rooms-setup))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
411
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
412 (defun sgml-fix-para ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
413 (setq paragraph-separate
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
414 "</[^>]*>\n\\([ \t]+\\| \\)")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
415 (setq paragraph-start
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
416 "^[ \t]*</?[A-Za-z._-]+[ >]"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
417
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
418 (defun highlight-headers-ht-follow-url-netscape (url &optional arg)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
419 (message "Sending URL to Netscape...")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
420 (save-excursion
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
421 (set-buffer (get-buffer-create "*Shell Command Output*"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
422 (erase-buffer)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
423 (if (equal 0 (call-process "netscape" nil t nil "-display" ":0.0"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
424 "-remote"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
425 (concat "openURL(" url ")")))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
426 ;; it worked
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
427 nil
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
428 ;; it didn't work, so start a new Netscape process.
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
429 (call-process "netscape" nil 0 nil url)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
430 (message "Sending URL to Netscape... done"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
431
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
432 (site-caseq (laptop (defun system-name () "francis.markup.co.uk")))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
433
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
434 (cd (user-home-directory))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
435
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
436 (require 'misc) ; used to be in common-init...
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
437
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
438 (ht-custom-size)