annotate pers-init.el @ 29:e59705180efa laptop

device/frame stuff
author ht
date Wed, 16 May 2018 15:40:47 +0100
parents 0e2183025318
children 6324d06c5a32
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
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
27 (setq send-mail-function 'smtpmail-send-it)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
28 (setq message-send-mail-function 'smtpmail-send-it)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
29 (setq smtpmail-default-smtp-server "localhost")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
30 (setq smtpmail-smtp-service "smtp")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
31 (setq smtpmail-local-domain "markuptechnology.com")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
32 (setq smtpmail-debug-info t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
33 (load "smtpmail" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
34 (setq smtpmail-code-conv-from nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
35
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
36 ;; don't know why this is necessary
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
37 (site-caseq ((edin)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
38 (setq rmail-primary-inbox-list
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
39 (list (concat rmail-spool-directory "ht")))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
40
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
41 ;; Perforce
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
42
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
43 ;;(setq p4-global-server-port "zorg.milowski.com:1666")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
44 ;;(setenv "P4PORT" "zorg.milowski.com:1666")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
45 ;;(setenv "P4CLIENT" "MarkupMan")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
46 ;;(setenv "P4CONFIG" ".p4env")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
47 ;;(load-library "p4")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
48 ;;(setq p4-use-p4config-exclusively t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
49 ;;(p4-set-p4-executable "/c/Program Files/Perforce/p4.exe")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
50 (setq vc-command-messages t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
51
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
52 (setq minibuffer-max-depth nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
53 (defun run-kcl ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
54 "Run an inferior kcl process"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
55 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
56 (switch-to-buffer (make-shell "kcl" "kcl"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
57 (inferior-lisp-mode))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
58
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
59 (require 'mdn-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
60 (setq auto-mode-alist
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
61 (append '(("/perl/" . perl-mode)
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
62 ("\\.scm$" . scheme-mode))
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
63 auto-mode-alist))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
64 (setq inferior-lisp-program "/c/Progra~1/ChezSc~1.4/bin/i3nt/petite")
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
65 ;;; for scheme
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
66 (put 'letrec 'lisp-indent-function 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
67 (put 'case 'lisp-indent-function 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
68
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
69 (site-caseq (parc (nconc load-path '("/import/local/emacs/gnus-3.13/"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
70 (setq rmail-primary-inbox-list
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
71 '("~/mbox" "/net/piglet/usr/spool/mail/$USER")))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
72 (edin (setq load-path (cons
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
73 "/home/ht/emacs/shared/gnus-5.0.15/lisp"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
74 load-path))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
75
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
76 (defun run-sicstus ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
77 "Run an inferior Prolog process, input and output via buffer *prolog*."
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
78 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
79 (if (not (boundp 'prolog-mode-map))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
80 (let ((load-path (cons
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
81 (site-caseq (parc "/import/prolog-1.8/emacs")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
82 (edin "??"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
83 load-path)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
84 (load "prolog" nil t)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
85 (require 'shell)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
86 (switch-to-buffer (make-shell "prolog" (site-caseq (edin "sicstus")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
87 (parc "prolog"))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
88 (inferior-prolog-mode))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
89
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
90 (site-caseq (laptop)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
91 (t(require 'hist)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
92 (rplacd (assoc "*shell*" hk-pat-table)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
93 "[a-z]+<[0-9]+>: ")))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
94
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
95 ;; turn off suspend-emacs -- use pause-emacs (^X.) instead
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
96 (global-unset-key "\C-Z")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
97 (global-unset-key "\C-x\C-z")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
98
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
99 (global-set-key "\C-xl" (function goto-line))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
100
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
101 ;(require 'repl-comment)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
102
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
103 ;(require 'compress)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
104
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
105 (if (string-match "Lucid" emacs-version)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
106 (site-caseq (laptop)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
107 (t(require 'lemacs-compat))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
108
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
109 (if (boundp 'epoch::version)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
110 ;; epoch only goes here
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
111 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
112 (if (string-match "4\\."emacs-version)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
113 (load "motion4" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
114 (load "motion" nil t))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
115 (redisplay-frame)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
116
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
117 (require 'alarm)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
118 (idle-save 15)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
119
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
120 (defun ht-rooms-setup (&optional arg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
121 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
122 (redisplay-frame)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
123 (require 'mail-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
124 (require 'diary)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
125 (require 'my-news)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
126 (let ((scr (current-frame)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
127 (load "ht-rooms-epoch.config" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
128 (unwind-protect (make-frame-for-room "diary" "-0" "+130"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
129 (unwind-protect (make-frame-for-room "elisp" "-25" "+148"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
130 (unwind-protect (make-frame-for-room "news" "-50" "+166"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
131 (unwind-protect (make-frame-for-room "mail" "-75" "+184"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
132 (epoch::delete-frame scr))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
133 ;; presumably this is now frame local, so not quite the right thing.
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
134 (setq ht-default-config (current-window-configuration)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
135 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
136 (if (string-match "^\\(19\\|2\\)" emacs-version)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
137 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
138 ;; common v19
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
139 (if window-system
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
140 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
141 (add-hook 'sh-mode-hook '(lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
142 (font-lock-mode 1)))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
143 (add-hook 'lsl-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
144 (font-lock-mode 1)))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
145 (add-hook 'perl-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
146 (font-lock-mode 1)))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
147 (add-hook 'emacs-lisp-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
148 (font-lock-mode 1)))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
149 (add-hook 'lisp-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
150 (font-lock-mode 1)))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
151 (add-hook 'sgml-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
152 (if (not
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
153 (boundp 'sgml-font-lock-keywords))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
154 (load "sgml-font-lock-keywords" t t))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
155 (setq adaptive-fill-mode nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
156 (font-lock-mode 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
157 ))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
158 (add-hook 'c-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
159 (font-lock-mode 1)))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
160 (add-hook 'c++-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
161 (font-lock-mode 1)))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
162 (add-hook 'scheme-mode-hook
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
163 '(lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
164 (setq
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
165 scheme-font-lock-keywords
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
166 (if (or
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
167 (boundp 'lisp-font-lock-keywords)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
168 (load "lisp-font-lock-keywords" t t))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
169 lisp-font-lock-keywords))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
170 (font-lock-mode 1)))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
171 (add-hook 'python-mode-hook '(lambda ()
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
172 (font-lock-mode 1)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
173 (setq py-python-command "//c/Program Files/Python22/python")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
174 (setq sgml-insert-missing-element-comment nil)
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
175 (condition-case nil
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
176 (progn
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
177 (load "psgml" nil t)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
178 (load "psgml-edit" nil t)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
179 ;; (load "xml-hack" nil t)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
180 ;;(setq sgml-catalog-files '("CATALOG" "f:/lib/sgml/catalog"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
181 )
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
182 (error nil))
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
183 (if (string-match "i386" (emacs-version))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
184 (progn (defun win32-get-clipboard-data-cmd ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
185 (interactive)(insert (win32-get-clipboard-data)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
186 (global-set-key
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
187 "\C-x\C-y" 'win32-get-clipboard-data-cmd)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
188 ;; gnus
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
189 (setq nnml-directory (expand-file-name "/home/ht/mail/Mail"))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
190 ; (setq mail-signature t)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
191 (setq gnus-message-archive-method
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
192 '(nnfolder "archive"
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
193 (nnfolder-directory "/home/ht/mail/cpy")
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
194 (nnfolder-active-file "/home/ht/mail/cpy/active")
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
195 (nnfolder-get-new-mail nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
196 (nnfolder-inhibit-expiry t)))
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
197 ;; loading gnus postponed to e.g. mail-from-delphix, q.v.
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
198
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
199 ; (require 'gnus-min)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
200 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
201
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
202 ;; (require 'idle)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
203 ;; (idle-save 15)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
204
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
205 (if (string-match "Lucid" emacs-version)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
206 ;; lemacs only goes here
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
207 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
208 (setq bbdb-north-american-phone-numbers-p nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
209 (setq bbdb-use-pop-up nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
210 (require 'bbdb)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
211 (add-hook 'rmail-mode-hook 'bbdb-insinuate-rmail)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
212 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
213 (add-hook 'mail-setup-hook 'bbdb-insinuate-sendmail)
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)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
216
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
217
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
218
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
219 (if window-system
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
220 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
221 (require 'highlight-headers)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
222 (defun rmail-fontify-headers ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
223 (highlight-headers (point-min) (point-max) t))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
224 (add-hook 'rmail-show-message-hook 'rmail-fontify-headers)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
225 (setq dired-mode-hook
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
226 '(lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
227 (font-lock-mode 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
228 (define-key dired-mode-map
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
229 [button2] '(lambda (click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
230 (interactive "e")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
231 (mouse-set-point click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
232 (dired-advertised-find-file)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
233 ;; (setq highlight-headers-follow-url-function
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
234 ;; 'highlight-headers-ht-follow-url-netscape
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
235 ;; browse-url-browser-function
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
236 ;;'highlight-headers-ht-follow-url-netscape)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
237 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
238 ;; (load "~rjc/public_html/device-type-hacking.el")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
239 (load "perl-mode" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
240 (defun ht-rooms-setup (&optional arg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
241 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
242 (require 'mail-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
243 (require 'diary)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
244 (require 'my-news)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
245 ;; override changed default, except in gnus
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
246 (setq mail-use-rfc822 nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
247 (add-hook 'gnus-summary-mode-hook
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
248 (function (lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
249 (make-local-variable 'mail-use-rfc822)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
250 (setq mail-use-rfc822 t))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
251 (if (>= emacs-major-version 21)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
252 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
253 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
254 (add-hook 'gnus-startup-hook 'bbdb-insinuate-message)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
255 (defun ht-rooms-setup (&optional arg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
256 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
257 (require 'mail-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
258 (require 'diary)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
259 (let ((scr (selected-frame)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
260 ; (sit-for 5)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
261 (load "ht-rooms.config" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
262 (unwind-protect (make-screen-for-room "diary" "0" "+62"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
263 ; (sit-for 5)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
264 (unwind-protect (make-screen-for-room "elisp" "-25" "+79"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
265 ; (sit-for 5)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
266 (unwind-protect (make-screen-for-room "news" "-50" "+96"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
267 ; (sit-for 5)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
268 (unwind-protect (make-screen-for-room "mail" "-75" "+113"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
269 (sit-for 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
270 (delete-screen scr))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
271 (setq ht-default-config (current-window-configuration)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
272 ;; vanilla v19 goes here
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
273 (if window-system
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
274 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
275 (defvar ht-frame-parameter-mods
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
276 '((auto-raise . t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
277 (auto-lower . nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
278 (cursor-type . bar)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
279 (nconc
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
280 (site-caseq (laptop (list '(height . 35)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
281 (t
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
282 (list
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
283 '(font .
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
284 "-adobe-courier-medium-r-normal--14-*"))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
285 ht-frame-parameter-mods
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
286 )
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
287 ;; if we have X, we have ISO-Latin-1, so
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
288 ;; set char codes 128--255 to display as themselves.
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
289 (require 'disp-table)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
290 (standard-display-8bit 161 255)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
291 ; (transient-mark-mode t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
292 ;; hightlight searching in bold
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
293 (setq search-highlight t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
294 (make-face 'isearch)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
295 (copy-face 'bold 'isearch)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
296 ; (set-face-underline-p 'region t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
297 ; (set-face-background 'region "white")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
298 ; (set-face-foreground 'region "black")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
299 ; (setq c++-font-lock-keywords 'undef)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
300 ; (setq c-font-lock-keywords 'undef)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
301 (modify-frame-parameters
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
302 nil
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
303 ht-frame-parameter-mods)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
304 (setq default-frame-alist
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
305 (append
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
306 ht-frame-parameter-mods default-frame-alist))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
307 ;; fix cut and paste
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
308 (setq interprogram-paste-function nil
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
309 interprogram-cut-function nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
310 (defun ht-mouse-set-region (click) "set region and primary selection"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
311 (interactive "e")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
312 (mouse-set-region click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
313 (x-set-selection "PRIMARY" (buffer-substring (point)(mark))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
314 (defun ht-mouse-drag-region (click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
315 "drag region and set primary selection"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
316 (interactive "e")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
317 (mouse-drag-region click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
318 (if mark-active
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
319 (x-set-selection "PRIMARY" (buffer-substring (point)(mark)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
320 (global-set-key [drag-mouse-1] (function ht-mouse-set-region))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
321 (global-set-key [down-mouse-1] (function ht-mouse-drag-region))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
322 (defun ht-mouse-insert-primary (click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
323 "set point and insert primary selection"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
324 (interactive "e")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
325 (mouse-set-point click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
326 (push-mark nil nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
327 (insert (x-selection)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
328 (global-set-key [mouse-2] (function ht-mouse-insert-primary))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
329 (setq dired-mode-hook
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
330 '(lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
331 (font-lock-mode 1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
332 (define-key dired-mode-map
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
333 [mouse-2] '(lambda (click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
334 (interactive "e")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
335 (mouse-set-point click)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
336 (dired-advertised-find-file)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
337
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
338 (defun ht-rooms-setup (&optional arg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
339 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
340 (require 'mail-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
341 (require 'diary)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
342 (require 'my-news)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
343 ;; override changed default, except in gnus
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
344 (setq mail-use-rfc822 nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
345 (add-hook 'gnus-summary-mode-hook
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
346 (function (lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
347 (make-local-variable 'mail-use-rfc822)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
348 (setq mail-use-rfc822 t))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
349 (let ((scr (selected-frame)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
350 (load "ht-rooms.config" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
351 (unwind-protect (make-frame-for-room "elisp" "-25" "-58"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
352 (unwind-protect (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
353 (make-frame-for-room "news" "-50" "-40")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
354 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
355 (unwind-protect (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
356 (make-frame-for-room "mail" "-75" "-22")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
357 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
358 (unwind-protect (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
359 (make-frame-for-room
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
360 "diary"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
361 "-0"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
362 (concat
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
363 "+"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
364 (format
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
365 "%d"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
366 (-
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
367 (cdr
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
368 (assoc
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
369 'top
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
370 (frame-parameters
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
371 (cdr
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
372 (assoc
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
373 "elisp"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
374 frames-table)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
375 18))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
376 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
377 (make-frame-invisible scr))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
378 (setq ht-default-config (current-window-configuration)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
379 (setq sgml-insert-missing-element-comment nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
380 (add-hook 'sgml-mode-hook 'sgml-fix-para)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
381 ))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
382 ;; v18 emacs only goes here
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
383 (progn
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
384 (require 'compress)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
385 (defun ht-rooms-setup (&optional arg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
386 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
387 (require 'mail-extras)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
388 (require 'diary)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
389 (require 'my-news)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
390 (load "ht-rooms.config" nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
391 (setq ht-default-config (current-window-configuration)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
392
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
393 (defun sgml-fix-para ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
394 (setq paragraph-separate
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
395 "</[^>]*>\n\\([ \t]+\\| \\)")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
396 (setq paragraph-start
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
397 "^[ \t]*</?[A-Za-z._-]+[ >]"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
398
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
399 (defun highlight-headers-ht-follow-url-netscape (url)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
400 (message "Sending URL to Netscape...")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
401 (save-excursion
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
402 (set-buffer (get-buffer-create "*Shell Command Output*"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
403 (erase-buffer)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
404 (if (equal 0 (call-process "netscape" nil t nil "-display" ":0.0"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
405 "-remote"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
406 (concat "openURL(" url ")")))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
407 ;; it worked
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
408 nil
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
409 ;; it didn't work, so start a new Netscape process.
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
410 (call-process "netscape" nil 0 nil url)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
411 (message "Sending URL to Netscape... done"))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
412
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
413 (site-caseq (laptop (defun system-name () "francis.markup.co.uk")))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
414
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
415 (cd (if (fboundp 'user-home-directory)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
416 (user-home-directory)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
417 (getenv "HOME")))
26
5d2492e352cc define ht-custom-size
ht
parents: 25
diff changeset
418 (defun ht-custom-size ()
5d2492e352cc define ht-custom-size
ht
parents: 25
diff changeset
419 (interactive)
5d2492e352cc define ht-custom-size
ht
parents: 25
diff changeset
420 (site-caseq (laptop
28
0e2183025318 parens???
ht
parents: 26
diff changeset
421 (message (format "pw: %s" (device-pixel-width (selected-device))))))
0e2183025318 parens???
ht
parents: 26
diff changeset
422 (if (fboundp 'device-pixel-width)
29
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
423 (let ((pw (device-pixel-width (selected-device)))
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
424 (ph (device-pixel-height (selected-device))))
28
0e2183025318 parens???
ht
parents: 26
diff changeset
425 (cond ((>= pw 1680)
0e2183025318 parens???
ht
parents: 26
diff changeset
426 ;; we're on a big external monitor
29
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
427 (require 'font-menu)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
428 (font-menu-set-font nil nil 10)
28
0e2183025318 parens???
ht
parents: 26
diff changeset
429 (set-frame-pixel-size (selected-frame) 900 960)
29
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
430 (set-frame-position (selected-frame) -3 -20))
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
431 ((= pw 1097)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
432 ;; we're on an XPS 13
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
433 (require 'font-menu)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
434 (font-menu-set-font nil nil 9)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
435 (set-frame-pixel-size (selected-frame) 583 583); 39 x 80
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
436 (set-frame-position (selected-frame) -5 -26))
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
437 ((= ph 768)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
438 ;; we're on a narrow cinema-ratio laptop
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
439 (set-frame-pixel-size (selected-frame) 690 710)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
440 (set-frame-position (selected-frame) -5 -26))
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
441 ((= ph 900)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
442 ;; we're on a cinema-ratio laptop
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
443 (set-frame-pixel-size (selected-frame) 800 820)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
444 (set-frame-position (selected-frame) -3 -20))
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
445 ((= pw 1600)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
446 ;; we're on a big external monitor
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
447 (set-frame-pixel-size (selected-frame) 900 1120)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
448 (set-frame-position (selected-frame) -3 -20))
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
449 ((= pw 1280)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
450 (cond ((= ph 720)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
451 (set-frame-pixel-size (selected-frame) 700 655)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
452 (set-frame-position (selected-frame) -3 -30))
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
453 (t
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
454 (set-frame-pixel-size (selected-frame) 700 960)
e59705180efa device/frame stuff
ht
parents: 28
diff changeset
455 (set-frame-position (selected-frame) -3 -20))))))))
26
5d2492e352cc define ht-custom-size
ht
parents: 25
diff changeset
456
5d2492e352cc define ht-custom-size
ht
parents: 25
diff changeset
457 (ht-custom-size)
25
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
458
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
459 ;;; make dired list directories first
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
460 (defadvice dired-insert-directory (before my-dired-insert-directory
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
461 (dir-or-list switches &optional wildcard full-p))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
462 (setq switches (concat switches " --group-directories-first")))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
463
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
464 (ad-activate 'dired-insert-directory)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
465
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
466 ;;; moved from custom.el, where they don't work
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
467 (setq
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
468 ecb-layout-name "leftright1"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
469 ecb-layout-window-sizes '(("leftright1"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
470 (ecb-directories-buffer-name 0.1474358974358974 . 0.3620689655172414)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
471 (ecb-sources-buffer-name 0.1474358974358974 . 0.3275862068965517)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
472 (ecb-history-buffer-name 0.1474358974358974 . 0.3103448275862069)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
473 (ecb-methods-buffer-name 0.2051282051282051 . 1.0)))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
474 ecb-options-version "2.40"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
475 ecb-show-tags '((default
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
476 (include collapsed nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
477 (parent collapsed nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
478 (type flattened nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
479 (variable collapsed name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
480 (function flattened name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
481 (label hidden nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
482 (t collapsed nil))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
483 (c++-mode
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
484 (include collapsed nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
485 (parent collapsed nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
486 (type flattened nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
487 (variable collapsed access)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
488 (function flattened access)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
489 (function collapsed access)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
490 (label hidden nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
491 (t collapsed nil))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
492 (c-mode
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
493 (include collapsed nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
494 (parent collapsed nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
495 (type flattened nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
496 (variable collapsed access)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
497 (function flattened access)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
498 (function collapsed access)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
499 (label hidden nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
500 (t collapsed nil))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
501 (bovine-grammar-mode
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
502 (keyword collapsed name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
503 (token collapsed name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
504 (nonterminal flattened name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
505 (rule flattened name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
506 (t collapsed nil))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
507 (wisent-grammar-mode
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
508 (keyword collapsed name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
509 (token collapsed name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
510 (nonterminal flattened name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
511 (rule flattened name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
512 (t collapsed nil))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
513 (texinfo-mode
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
514 (section flattened nil)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
515 (def collapsed name)
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
516 (t collapsed nil)))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
517 ecb-source-file-regexps '((".*"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
518 ("\\(^\\(\\.\\|#\\)\\|\\(~$\\|\\.\\(elc\\|obj\\|o\\|class\\|lib\\|dll\\|a\\|so\\|cache\\|pyc\\)$\\)\\)")
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
519 ("^\\.\\(emacs\\|gnus\\)$")))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
520 ecb-sources-exclude-cvsignore '(".*")
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
521 ediff-diff-options "--binary -b -w -B "
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
522 efs-ftp-program-name "/c/Windows/System32/ftp"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
523 efs-ftp-flush-command "help help"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
524 efs-tmp-name-template "C:\\Cygwin\\tmp\\efs"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
525 ; efs-ftp-program-name "/usr/bin/ftp"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
526 efs-use-passive-mode nil
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
527 gnus-treat-display-picons nil
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
528 ispell-local-dictionary "british"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
529 ispell-program-name "aspell"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
530 jde-ant-buildfile "build.xml"
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
531 jde-ant-enable-find t
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
532 jde-ant-read-target t
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
533 jde-auto-parse-buffer-interval 60
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
534 jde-db-option-application-args '("-err" "err.xml" "id.xpdl")
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
535 jde-enable-abbrev-mode t
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
536 jde-gen-cflow-if '("(if (jde-parse-comment-or-quoted-p)" " '(l \"if\")" " '(l '> \"if\" jde-gen-conditional-padding-1 " " \"(\" jde-gen-conditional-padding-2 (p \"if-clause: \" clause)" " jde-gen-conditional-padding-2 \")\"" " (if jde-gen-k&r " " jde-gen-conditional-padding-3 " " '>'n)" " \"{\"'>'n'>'r'n" " \"}\"" " (if jde-gen-comments " " '(l \" // end of if (\" (s clause) \")\"))" " '>'n'> )" " )")
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
537 jde-gen-cflow-try-catch '("(if (jde-parse-comment-or-quoted-p)" " '(l \"try\")" " '(l '> \"try \"" " (if jde-gen-k&r " " ()" " 'n)" " \"{\"'>'n'>'r'n" " \"}\" '>" " (if jde-gen-k&r " " jde-gen-conditional-padding-3 " " 'n)" " \"catch\" jde-gen-conditional-padding-1 " " \"(\" jde-gen-conditional-padding-2 (p \"catch what: \" clause) \" e\"" " jde-gen-conditional-padding-2 \")\" '>" " (if jde-gen-k&r " " jde-gen-conditional-padding-3 " " 'n)" " \"{\"'>'n'>'p'n" " \"}\"" " (if jde-gen-comments " " '(l \" // end of try-catch\"))" " '>'n'> )" " )")
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
538 jde-global-classpath '("/home/ht/MT/source/debug:/home/ht/MT/source/3rdparty/jh.jar:/home/ht/MT/source/3rdparty/jsearch.jar")
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
539 jde-jdk '("1.6.0")
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
540 jde-jdk-registry '(("1.6.0" . "/c/Program Files/Java/jdk1.6.0_23")
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
541 ("1.5.0" . "/c/Program Files/j2sdk1.5.0"))
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
542 fill-indent-according-to-mode t
0e4eb9db8a93 after debugging use with GNU Emacs
ht
parents: 6
diff changeset
543 )
26
5d2492e352cc define ht-custom-size
ht
parents: 25
diff changeset
544 (message (format "fh: %s" (frame-pixel-height (selected-frame))))
5d2492e352cc define ht-custom-size
ht
parents: 25
diff changeset
545