annotate pers-init.el @ 59:29e0ef38765f

default empty provision for set-ht...
author Henry S Thompson <ht@inf.ed.ac.uk>
date Thu, 04 Apr 2024 16:42:46 +0100
parents 32a75a4db17b
children
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
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
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
20 (setq user-full-name "Henry S. Thompson")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
21
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
22 (setq vc-command-messages t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
23
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
24 (setq minibuffer-max-depth nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
25 (defun run-kcl ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
26 "Run an inferior kcl process"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
27 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
28 (switch-to-buffer (make-shell "kcl" "kcl"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
29 (inferior-lisp-mode))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
30
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
31 (require 'mdn-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
32 (setq auto-mode-alist
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
33 (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
34 ("\\.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
35 ("\\.dsl$" . lisp-mode))
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
36 auto-mode-alist))
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
37 (setq inferior-lisp-program "scheme")
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
38 ;;; for scheme
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
39 (put 'letrec 'lisp-indent-function 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
40 (put 'case 'lisp-indent-function 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
41
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
42 (site-caseq (parc (nconc load-path '("/import/local/emacs/gnus-3.13/"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
43 (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
44 '("~/mbox" "/net/piglet/usr/spool/mail/$USER"))))
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
45
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
46 (defun run-sicstus ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
47 "Run an inferior Prolog process, input and output via buffer *prolog*."
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
48 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
49 (if (not (boundp 'prolog-mode-map))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
50 (let ((load-path (cons
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
51 (site-caseq (parc "/import/prolog-1.8/emacs")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
52 (edin "??"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
53 load-path)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
54 (load "prolog" nil t)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
55 (require 'shell)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
56 (switch-to-buffer (make-shell "prolog" (site-caseq (edin "sicstus")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
57 (parc "prolog"))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
58 (inferior-prolog-mode))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
59
32
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
60 (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
61 (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
62 "[a-z]+<[0-9]+>: ")
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
63
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
64 ;; turn off suspend-emacs -- use pause-emacs (^X.) instead
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
65 (global-unset-key "\C-Z")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
66 (global-unset-key "\C-x\C-z")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
67
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
68 (global-set-key "\C-xl" (function goto-line))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
69
32
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
70 (require 'repl-comment)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
71
32
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
72 (require 'compress)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
73
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
74 (if (string-match "Lucid" emacs-version)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
75 (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
76 (require 'lemacs-compat)))
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
77
32
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
78 (if window-system
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
79 (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
80 (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
81 (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
82 (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
83 (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
84 (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
85 (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
86 (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
87 (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
88 (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
89 (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
90 (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
91 (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
92 (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
93 (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
94 ))
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
95 (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
96 (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
97 (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
98 (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
99 (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
100 '(lambda ()
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
101 (setq
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
102 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
103 (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
104 (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
105 (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
106 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
107 (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
108 (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
109 (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
110 (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
111 (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
112 (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
113 ;; (load "xml-hack" nil t)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
114 ; (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
115 (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
116 (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
117 (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
118 (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
119 "\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
120 ))
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
121
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
122
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
123 (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
124 (setq sgml-catalog-files '("catalog" "/afs/inf.ed.ac.uk/user/h/ht/lib/sgml/catalog"))))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
125
32
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
126 (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
127 ;; 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
128 (progn
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
129 (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
130 ;; 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
131 (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
132 (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
133 (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
134 (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
135 (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
136 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
137 (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
138 (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
139 (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
140 (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
141 (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
142 (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
143 (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
144 ;(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
145 (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
146 (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
147 (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
148 (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
149 (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
150 (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
151 (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
152 (progn
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
153 (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
154 (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
155 (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
156 (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
157 ;(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
158 (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
159 (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
160 (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
161 (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
162 (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
163 (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
164 ;; 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
165 ;; 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
166 (progn
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
167 (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
168 ;(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
169 ; (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
170 ; (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
171 ))
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
172 (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
173 (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
174 (gnuserv-start)))
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
175 ;;; (require 'itimer)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
176 ;;; (start-itimer "gsr" 'gnuserv-start-maybe
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
177 ;;; 1200 1200 nil nil)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
178
32
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
179 (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
180 (progn
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
181 (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
182 ;; 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
183 (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
184 (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
185 (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
186 (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
187 (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
188 '(lambda ()
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
189 (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
190 (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
191 [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
192 (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
193 (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
194 (dired-advertised-find-file)))))
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
195 (set-face-background 'modeline '((x) . "lightgrey"))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
196 (defun ht-rooms-setup (&optional arg)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
197 (interactive)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
198 (require 'rooms)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
199 (require 'mail-extras)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
200 (require 'diary)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
201 (let ((scr (selected-frame)))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
202 ; (sit-for 5)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
203 (load "ht-rooms.config" nil t)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
204 ;; for ecclerig viewed from paul
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
205 (if (eq (device-pixel-width (selected-device)) 1920)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
206 (progn
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
207 (unwind-protect
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
208 (make-screen-for-room "diary" "+1219" "+68"))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
209 (unwind-protect
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
210 (make-screen-for-room "elisp" "+1185" "+102"))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
211 (unwind-protect
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
212 (make-screen-for-room "news" "+1253" "+34")))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
213 ;; for ecclerig in office
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
214 (unwind-protect (make-screen-for-room "diary" "+1888" "+0"))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
215 (unwind-protect (make-screen-for-room "elisp" "+1888" "+0"))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
216 (unwind-protect (make-screen-for-room "news" "+1223" "+0")))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
217 (sit-for 1)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
218 (delete-frame scr))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
219 (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
220 ;; DICE comes here 2012-01-13
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
221 (setq interprogram-paste-function (lambda ()
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
222 (or (get-clipboard-foreign)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
223 (if (selection-exists-p)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
224 (get-selection-foreign)))))
58
32a75a4db17b try to paramterise email handling a bit more
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 43
diff changeset
225 ;(load "device-type-hacking" t t)
32a75a4db17b try to paramterise email handling a bit more
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 43
diff changeset
226 (setq zmacs-regions 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)
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
234 ))
36
642211cbf13a prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 33
diff changeset
235 (message "gnus-init")
642211cbf13a prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 33
diff changeset
236 (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
237 (require 'gnus-init)))
642211cbf13a prepare for switch to this from ~/emacs/...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 33
diff changeset
238 )
32
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
239 ;; 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
240 ;; 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
241 (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
242 (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
243 (progn
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
244 (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
245 (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
246 '((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
247 (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
248 (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
249 (nconc
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
250 (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
251 (t
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
252 (list
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
253 '(font .
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
254 "-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
255 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
256 )
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
257 ;; 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
258 ;; 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
259 (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
260 (standard-display-8bit 161 255)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
261 ; (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
262 ;; 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
263 (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
264 (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
265 (copy-face 'bold 'isearch)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
266 ; (set-face-underline-p 'region t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
267 ; (set-face-background 'region "white")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
268 ; (set-face-foreground 'region "black")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
269 ; (setq c++-font-lock-keywords 'undef)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
270 ; (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
271 (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
272 nil
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
273 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
274 (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
275 (append
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
276 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
277 ;; 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
278 (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
279 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
280 (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
281 (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
282 (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
283 (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
284 (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
285 "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
286 (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
287 (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
288 (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
289 (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
290 (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
291 (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
292 (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
293 "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
294 (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
295 (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
296 (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
297 (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
298 (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
299 (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
300 '(lambda ()
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
301 (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
302 (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
303 [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
304 (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
305 (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
306 (dired-advertised-find-file)))))
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
307 (message "defined rooms 2")
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 37
diff changeset
308 )))
32
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
309 (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
310 (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
311 (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
312 (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
313 (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
314 ;; v18 emacs only was here
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
315
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
316 (defun ht-rooms-resetup ()
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
317 (interactive)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
318 (setq rooms-table nil)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
319 (setq frames-table nil)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
320 (ht-rooms-setup))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
321
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
322 (defun sgml-fix-para ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
323 (setq paragraph-separate
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
324 "</[^>]*>\n\\([ \t]+\\| \\)")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
325 (setq paragraph-start
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
326 "^[ \t]*</?[A-Za-z._-]+[ >]"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
327
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
328 (defun highlight-headers-ht-follow-url-netscape (url &optional arg)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
329 (message "Sending URL to Netscape...")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
330 (save-excursion
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
331 (set-buffer (get-buffer-create "*Shell Command Output*"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
332 (erase-buffer)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
333 (if (equal 0 (call-process "netscape" nil t nil "-display" ":0.0"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
334 "-remote"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
335 (concat "openURL(" url ")")))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
336 ;; it worked
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
337 nil
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
338 ;; it didn't work, so start a new Netscape process.
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
339 (call-process "netscape" nil 0 nil url)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
340 (message "Sending URL to Netscape... done"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
341
32
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
342 ;;; 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
343 (setq
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
344 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
345 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
346 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
347 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
348 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
349 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
350 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
351 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
352 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
353 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
354 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
355 )
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
356
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
357 (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
358 '(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
359 '(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
360 '(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
361 '(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
362 '(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
363 '(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
364 '(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
365 '(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
366 '(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
367 '(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
368 '(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
369 '(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
370 )
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
371
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
372 (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
373 '(modeline (
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
374 (((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
375 (: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
376 (t
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
377 (: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
378 '(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
379 (((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
380 (: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
381 (((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
382 (: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
383 (t
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
384 (: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
385 '(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
386 (((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
387 (: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
388 (((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
389 (: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
390 (t
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
391 (: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
392 '(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
393 (((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
394 (: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
395 (((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
396 (: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
397 (t
cb9b76219c55 attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents: 24
diff changeset
398 (: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
399 )
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
400
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
401 (cd (user-home-directory))
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
402
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
403 (require 'misc) ; used to be in common-init...
19
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
404
cc9c7bc8194a custom-size
ht
parents: 17
diff changeset
405 (ht-custom-size)