annotate etc/sample.emacs @ 78:c7528f8e288d r20-0b34

Import from CVS: tag r20-0b34
author cvs
date Mon, 13 Aug 2007 09:05:42 +0200
parents 131b0175ea99
children 1ce6082ce73f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
1 ;; -*- Mode: Emacs-Lisp -*-
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;;; This is a sample .emacs file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;;; The .emacs file, which should reside in your home directory, allows you to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;;; customize the behavior of Emacs. In general, changes to your .emacs file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;; will not take effect until the next time you start up Emacs. You can load
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; it explicitly with `M-x load-file RET ~/.emacs RET'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;; There is a great deal of documentation on customization in the Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;; manual. You can read this manual with the online Info browser: type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;; `C-h i' or select "Emacs Info" from the "Help" menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; Basic Customization ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;; Enable the commands `narrow-to-region' ("C-x n n") and
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
20 ;; `eval-expression' ("M-:", or "ESC :"). Both are useful
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; commands, but they can be confusing for a new user, so they're
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;; disabled by default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 (put 'narrow-to-region 'disabled nil)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
24 (put 'eval-expression 'disabled nil)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;; Define a variable to indicate whether we're running XEmacs/Lucid Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;; (You do not have to defvar a global variable before using it --
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; you can just call `setq' directly like we do for `emacs-major-version'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;; below. It's clearer this way, though.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;; Make the sequence "C-x w" execute the `what-line' command,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ;; which prints the current line number in the echo area.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (global-set-key "\C-xw" 'what-line)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ;; set up the function keys to do common tasks to reduce Emacs pinky
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ;; and such.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;; Make F1 invoke help
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
41 (global-set-key 'f1 'help-command)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;; Make F2 be `undo'
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
43 (global-set-key 'f2 'undo)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ;; Make F3 be `find-file'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ;; Note: it does not currently work to say
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ;; (global-set-key 'f3 "\C-x\C-f")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ;; The reason is that macros can't do interactive things properly.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ;; This is an extremely longstanding bug in Emacs. Eventually,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ;; it will be fixed. (Hopefully ..)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
50 (global-set-key 'f3 'find-file)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ;; Make F4 be "mark", F5 be "copy", F6 be "paste"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ;; Note that you can set a key sequence either to a command or to another
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 ;; key sequence.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
55 (global-set-key 'f4 'set-mark-command)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
56 (global-set-key 'f5 "\M-w")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
57 (global-set-key 'f6 "\C-y")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ;; Shift-F4 is "pop mark off of stack"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 (global-set-key '(shift f4) (lambda () (interactive) (set-mark-command t)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ;; Make F7 be `save-buffer'
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
63 (global-set-key 'f7 'save-buffer)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ;; Make F8 be "start macro", F9 be "end macro", F10 be "execute macro"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
66 (global-set-key 'f8 'start-kbd-macro)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
67 (global-set-key 'f9 'end-kbd-macro)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
68 (global-set-key 'f10 'call-last-kbd-macro)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ;; Here's an alternative binding if you don't use keyboard macros:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ;; Make F8 be `save-buffer' followed by `delete-window'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ;;(global-set-key 'f8 "\C-x\C-s\C-x0")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 ;; If you prefer delete to actually delete forward then you want to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 ;; uncomment the next line.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ;; (load-library "delbackspace")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (cond (running-xemacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 ;; Code for any version of XEmacs/Lucid Emacs goes here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ;; Change the values of some variables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ;; (t means true; nil means false.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 ;; Use the "Describe Variable..." option on the "Help" menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 ;; to find out what these variables mean.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 (setq find-file-use-truenames nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 find-file-compare-truenames t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 minibuffer-confirm-incomplete t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 complex-buffers-menu-p t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 next-line-add-newlines nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 mail-yank-prefix "> "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 kill-whole-line t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 ;; When running ispell, consider all 1-3 character words as correct.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 (setq ispell-extra-args '("-W" "3"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
101 ;; Change the way the buffer name is displayed in the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
102 ;; modeline. The variable for this is called
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
103 ;; 'modeline-buffer-identification but was called
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
104 ;; 'mode-line-buffer-identification in older XEmacsen.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
105 (if (boundp 'modeline-buffer-identification)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
106 ;; Note that if you want to put more than one form in the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
107 ;; `THEN' clause of an IF-THEN-ELSE construct, you have to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
108 ;; surround the forms with `progn'. You don't have to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
109 ;; do this for the `ELSE' clauses.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
110 (progn
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
111 (setq-default modeline-buffer-identification '("XEmacs: %17b"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
112 (setq modeline-buffer-identification '("XEmacs: %17b")))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
113 (setq-default mode-line-buffer-identification '("XEmacs: %17b"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
114 (setq mode-line-buffer-identification '("XEmacs: %17b")))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
115
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 (cond ((or (not (fboundp 'device-type))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 (equal (device-type) 'x))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 ;; Code which applies only when running emacs under X goes here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ;; (We check whether the function `device-type' exists
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 ;; before using it. In versions before 19.12, there
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ;; was no such function. If it doesn't exist, we
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ;; simply assume we're running under X -- versions before
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 ;; 19.12 only supported X.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 ;; Remove the binding of C-x C-c, which normally exits emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 ;; It's easy to hit this by mistake, and that can be annoying.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ;; Under X, you can always quit with the "Exit Emacs" option on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 ;; the File menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 (global-set-key "\C-x\C-c" nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 ;; Uncomment this to enable "sticky modifier keys" in 19.13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 ;; and up. With sticky modifier keys enabled, you can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 ;; press and release a modifier key before pressing the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 ;; key to be modified, like how the ESC key works always.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 ;; If you hold the modifier key down, however, you still
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 ;; get the standard behavior. I personally think this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 ;; is the best thing since sliced bread (and a *major*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 ;; win when it comes to reducing Emacs pinky), but it's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 ;; disorienting at first so I'm not enabling it here by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 ;; default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 ;;(setq modifier-keys-are-sticky t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 ;; This changes the variable which controls the text that goes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 ;; in the top window title bar. (However, it is not changed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 ;; unless it currently has the default value, to avoid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 ;; interfering with a -wn command line argument I may have
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 ;; started emacs with.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (if (equal frame-title-format "%S: %b")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (setq frame-title-format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 (concat "%S: " invocation-directory invocation-name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 " [" emacs-version "]"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 (if nil ; (getenv "NCD")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 " %b"))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 ;; If we're running on display 0, load some nifty sounds that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 ;; will replace the default beep. But if we're running on a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 ;; display other than 0, which probably means my NCD X terminal,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 ;; which can't play digitized sounds, do two things: reduce the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ;; beep volume a bit, and change the pitch of the sound that is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 ;; made for "no completions."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 ;; (Note that sampled sounds only work if XEmacs was compiled
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 ;; with sound support, and we're running on the console of a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 ;; Sparc, HP, or SGI machine, or on a machine which has a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ;; NetAudio server; otherwise, you just get the standard beep.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 ;; (Note further that changing the pitch and duration of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 ;; standard beep only works with some X servers; many servers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 ;; completely ignore those parameters.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 (cond ((string-match ":0" (getenv "DISPLAY"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (load-default-sounds))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 (setq bell-volume 40)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (setq sound-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 (append sound-alist '((no-completion :pitch 500))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 ;; Make `C-x C-m' and `C-x RET' be different (since I tend
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 ;; to type the latter by accident sometimes.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 (define-key global-map [(control x) return] nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 ;; Change the pointer used when the mouse is over a modeline
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 (set-glyph-image modeline-pointer-glyph "leftbutton")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
188 ;; Change the continuation glyph face so it stands out more
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
189 (and (fboundp 'set-glyph-property)
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
190 (boundp 'continuation-glyph)
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
191 (set-glyph-property continuation-glyph 'face 'bold))
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
192
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 ;; Change the pointer used during garbage collection.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 ;; Note that this pointer image is rather large as pointers go,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 ;; and so it won't work on some X servers (such as the MIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 ;; R5 Sun server) because servers may have lamentably small
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 ;; upper limits on pointer size.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 ;;(if (featurep 'xpm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 ;; (set-glyph-image gc-pointer-glyph
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 ;; (expand-file-name "trash.xpm" data-directory)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 ;; Here's another way to do that: it first tries to load the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 ;; pointer once and traps the error, just to see if it's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 ;; possible to load that pointer on this system; if it is,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 ;; then it sets gc-pointer-glyph, because we know that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 ;; will work. Otherwise, it doesn't change that variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 ;; because we know it will just cause some error messages.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 (if (featurep 'xpm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 (let ((file (expand-file-name "recycle.xpm" data-directory)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 (if (condition-case error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 ;; check to make sure we can use the pointer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 (make-image-instance file nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 '(pointer))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 (error nil)) ; returns nil if an error occurred.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 (set-glyph-image gc-pointer-glyph file))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 ;; Add `dired' to the File menu
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
219 (add-menu-button '("File") ["Edit Directory" dired t])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 ;; Here's a way to add scrollbar-like buttons to the menubar
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
222 (add-menu-button nil ["Top" beginning-of-buffer t])
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
223 (add-menu-button nil ["<<<" scroll-down t])
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
224 (add-menu-button nil [" . " recenter t])
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
225 (add-menu-button nil [">>>" scroll-up t])
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
226 (add-menu-button nil ["Bot" end-of-buffer t])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 ;; Change the behavior of mouse button 2 (which is normally
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 ;; bound to `mouse-yank'), so that it inserts the selected text
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 ;; at point (where the text cursor is), instead of at the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 ;; position clicked.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 ;; Note that you can find out what a particular key sequence or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 ;; mouse button does by using the "Describe Key..." option on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 ;; the Help menu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 (setq mouse-yank-at-point t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 ;; When editing C code (and Lisp code and the like), I often
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 ;; like to insert tabs into comments and such. It gets to be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 ;; a pain to always have to use `C-q TAB', so I set up a more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 ;; convenient binding. Note that this does not work in
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
242 ;; TTY frames, where tab and shift-tab are indistinguishable.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 (define-key global-map '(shift tab) 'self-insert-command)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 ;; LISPM bindings of Control-Shift-C and Control-Shift-E.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ;; Note that "\C-C" means Control-C, not Control-Shift-C.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 ;; To specify shifted control characters, you must use the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 ;; more verbose syntax used here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 (define-key emacs-lisp-mode-map '(control C) 'compile-defun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 (define-key emacs-lisp-mode-map '(control E) 'eval-defun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 ;; If you like the FSF Emacs binding of button3 (single-click
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 ;; extends the selection, double-click kills the selection),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 ;; uncomment the following:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 ;; Under 19.13, the following is enough:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 ;(define-key global-map 'button3 'mouse-track-adjust)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 ;; But under 19.12, you need this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 ;(define-key global-map 'button3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 ; (lambda (event)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 ; (interactive "e")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 ; (let ((default-mouse-track-adjust t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 ; (mouse-track event))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 ;; Under both 19.12 and 19.13, you also need this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 ;(add-hook 'mouse-track-click-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 ; (lambda (event count)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 ; (if (or (/= (event-button event) 3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 ; (/= count 2))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 ; nil ;; do the normal operation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 ; (kill-region (point) (mark))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 ; t ;; don't do the normal operations.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 ; )))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 ;;; Older versions of emacs did not have these variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 ;;; (emacs-major-version and emacs-minor-version.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 ;;; Let's define them if they're not around, since they make
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 ;;; it much easier to conditionalize on the emacs version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 (if (and (not (boundp 'emacs-major-version))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 (string-match "^[0-9]+" emacs-version))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 (setq emacs-major-version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 (string-to-int (substring emacs-version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 (match-beginning 0) (match-end 0)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 (if (and (not (boundp 'emacs-minor-version))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 (string-match "^[0-9]+\\.\\([0-9]+\\)" emacs-version))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 (setq emacs-minor-version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 (string-to-int (substring emacs-version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 (match-beginning 1) (match-end 1)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 ;;; Define a function to make it easier to check which version we're
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 ;;; running.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 (defun running-emacs-version-or-newer (major minor)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 (or (> emacs-major-version major)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 (and (= emacs-major-version major)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 (>= emacs-minor-version minor))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 (cond ((and running-xemacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 (running-emacs-version-or-newer 19 6))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 ;; Code requiring XEmacs/Lucid Emacs version 19.6 or newer goes here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 (cond ((>= emacs-major-version 19)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 ;; Code for any vintage-19 emacs goes here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 (cond ((and (not running-xemacs)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 (>= emacs-major-version 19))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 ;; Code specific to FSF Emacs 19 (not XEmacs/Lucid Emacs) goes here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 (cond ((< emacs-major-version 19)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 ;; Code specific to emacs 18 goes here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 ;; Customization of Specific Packages ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 ;;; ********************
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
338 ;;; Load ange-ftp, which uses the FTP protocol as a pseudo-filesystem.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 ;;; When this is loaded, the pathname syntax /user@host:/remote/path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 ;;; refers to files accessible through ftp.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 (require 'dired)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
343 (require 'ange-ftp)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
344 (setq ange-ftp-default-user "anonymous" ; id to use for /host:/remote/path
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
345 ange-ftp-generate-anonymous-password t ; use $USER@`hostname`
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
346 ange-ftp-binary-file-name-regexp "." ; always transfer in binary mode
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
347 )
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents: 16
diff changeset
348
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 ;;; Load the auto-save.el package, which lets you put all of your autosave
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 ;;; files in one place, instead of scattering them around the file system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 (setq auto-save-directory (expand-file-name "~/autosave/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 auto-save-directory-fallback auto-save-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 auto-save-hash-p nil
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
357 ange-ftp-auto-save t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 42
diff changeset
358 ange-ftp-auto-save-remotely nil
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 ;; now that we have auto-save-timeout, let's crank this up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 ;; for better interactive response.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 auto-save-interval 2000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 ;; We load this afterwards because it checks to make sure the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 ;; auto-save-directory exists (creating it if not) when it's loaded.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 (require 'auto-save)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 ;; This adds additional extensions which indicate files normally
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 ;; handled by cc-mode.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 (setq auto-mode-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 (append '(("\\.C$" . c++-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 ("\\.cc$" . c++-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 ("\\.hh$" . c++-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 ("\\.c$" . c-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 ("\\.h$" . c-mode))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 auto-mode-alist))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 ;;; cc-mode (the mode you're in when editing C, C++, and Objective C files)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 ;; Tell cc-mode not to check for old-style (K&R) function declarations.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 ;; This speeds up indenting a lot.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 (setq c-recognize-knr-p nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 ;; Change the indentation amount to 4 spaces instead of 2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 ;; You have to do it in this complicated way because of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 ;; strange way the cc-mode initializes the value of `c-basic-offset'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 (add-hook 'c-mode-hook (lambda () (setq c-basic-offset 4)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 ;;; Load a partial-completion mechanism, which makes minibuffer completion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 ;;; search multiple words instead of just prefixes; for example, the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 ;;; `M-x byte-compile-and-load-file RET' can be abbreviated as `M-x b-c-a RET'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 ;;; because there are no other commands whose first three words begin with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 ;;; the letters `b', `c', and `a' respectively.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 (load-library "completer")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 ;;; Load crypt, which is a package for automatically decoding and reencoding
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 ;;; files by various methods - for example, you can visit a .Z or .gz file,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 ;;; edit it, and have it automatically re-compressed when you save it again.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 (setq crypt-encryption-type 'pgp ; default encryption mechanism
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 crypt-confirm-password t ; make sure new passwords are correct
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 ;crypt-never-ever-decrypt t ; if you don't encrypt anything, set this to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 ; tell it not to assume that "binary" files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 ; are encrypted and require a password.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 (require 'crypt)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 ;;; Edebug is a source-level debugger for emacs-lisp programs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 (define-key emacs-lisp-mode-map "\C-xx" 'edebug-defun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 ;;; Font-Lock is a syntax-highlighting package. When it is enabled and you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 ;;; are editing a program, different parts of your program will appear in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 ;;; different fonts or colors. For example, with the code below, comments
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 ;;; appear in red italics, function names in function definitions appear in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 ;;; blue bold, etc. The code below will cause font-lock to automatically be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 ;;; enabled when you edit C, C++, Emacs-Lisp, and many other kinds of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 ;;; programs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 ;;; The "Options" menu has some commands for controlling this as well.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 (cond (running-xemacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 ;; If you want the default colors, you could do this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 ;; (setq font-lock-use-default-fonts nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 ;; (setq font-lock-use-default-colors t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 ;; but I want to specify my own colors, so I turn off all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 ;; default values.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 (setq font-lock-use-default-fonts nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 (setq font-lock-use-default-colors nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 (require 'font-lock)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 ;; Mess around with the faces a bit. Note that you have
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 ;; to change the font-lock-use-default-* variables *before*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 ;; loading font-lock, and wait till *after* loading font-lock
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 ;; to customize the faces.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 ;; string face is green
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 (set-face-foreground 'font-lock-string-face "forest green")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 ;; comments are italic and red; doc strings are italic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 ;; (I use copy-face instead of make-face-italic/make-face-bold
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 ;; because the startup code does intelligent things to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 ;; 'italic and 'bold faces to ensure that they are different
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 ;; from the default face. For example, if the default face
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 ;; is bold, then the 'bold face will be unbold.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 (copy-face 'italic 'font-lock-comment-face)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
460 ;; Underlining comments looks terrible on tty's
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 (set-face-underline-p 'font-lock-comment-face nil 'global 'tty)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 (set-face-highlight-p 'font-lock-comment-face t 'global 'tty)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 (copy-face 'font-lock-comment-face 'font-lock-doc-string-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 (set-face-foreground 'font-lock-comment-face "red")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 ;; function names are bold and blue
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 (copy-face 'bold 'font-lock-function-name-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 (set-face-foreground 'font-lock-function-name-face "blue")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 ;; misc. faces
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 (and (find-face 'font-lock-preprocessor-face) ; 19.13 and above
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 (copy-face 'bold 'font-lock-preprocessor-face))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 (copy-face 'italic 'font-lock-type-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 (copy-face 'bold 'font-lock-keyword-face)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 ;;; fast-lock is a package which speeds up the highlighting of files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 ;;; by saving information about a font-locked buffer to a file and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 ;;; loading that information when the file is loaded again. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 ;;; requires a little extra disk space be used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 ;;; Normally fast-lock puts the cache file (the filename appended with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 ;;; .flc) in the same directory as the file it caches. You can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 ;;; specify an alternate directory to use by setting the variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 ;;; fast-lock-cache-directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 ;; Let's use lazy-lock instead.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 ;;(add-hook 'font-lock-mode-hook 'turn-on-fast-lock)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 ;;(setq fast-lock-cache-directories '("/foo/bar/baz"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 ;;; lazy-lock is a package which speeds up the highlighting of files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 ;;; by doing it "on-the-fly" -- only the visible portion of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 ;;; buffer is fontified. The results may not always be quite as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 ;;; accurate as using full font-lock or fast-lock, but it's *much*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 ;;; faster. No more annoying pauses when you load files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 (add-hook 'font-lock-mode-hook 'turn-on-lazy-lock)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 ;; I personally don't like "stealth mode" (where lazy-lock starts
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 ;; fontifying in the background if you're idle for 30 seconds)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 ;; because it takes too long to wake up again on my piddly Sparc 1+.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 (setq lazy-lock-stealth-time nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 ;;; func-menu is a package that scans your source file for function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 ;;; definitions and makes a menubar entry that lets you jump to any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 ;;; particular function definition by selecting it from the menu. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 ;;; following code turns this on for all of the recognized languages.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 ;;; Scanning the buffer takes some time, but not much.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 ;;; Send bug reports, enhancements etc to:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 ;;; David Hughes <ukchugd@ukpmr.cs.philips.nl>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 (cond (running-xemacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 (require 'func-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 (define-key global-map 'f8 'function-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 (add-hook 'find-file-hooks 'fume-add-menubar-entry)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 (define-key global-map "\C-cl" 'fume-list-functions)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 (define-key global-map "\C-cg" 'fume-prompt-function-goto)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 ;; The Hyperbole information manager package uses (shift button2) and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 ;; (shift button3) to provide context-sensitive mouse keys. If you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 ;; use this next binding, it will conflict with Hyperbole's setup.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 ;; Choose another mouse key if you use Hyperbole.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 (define-key global-map '(shift button3) 'mouse-function-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 ;; For descriptions of the following user-customizable variables,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 ;; type C-h v <variable>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 (setq fume-max-items 25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 fume-fn-window-position 3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 fume-auto-position-popup t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 fume-display-in-modeline-p t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 fume-menubar-menu-location "File"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 fume-buffer-name "*Function List*"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 fume-no-prompt-on-valid-default nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 ;;; MH is a mail-reading system from the Rand Corporation that relies on a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 ;;; number of external filter programs (which do not come with emacs.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 ;;; Emacs provides a nice front-end onto MH, called "mh-e".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 ;; Bindings that let you send or read mail using MH
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
549 ;(global-set-key "\C-xm" 'mh-smail)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 ;(global-set-key "\C-x4m" 'mh-smail-other-window)
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
551 ;(global-set-key "\C-cr" 'mh-rmail)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 ;; Customization of MH behavior.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 (setq mh-delete-yanked-msg-window t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 (setq mh-yank-from-start-of-msg 'body)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 (setq mh-summary-height 11)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 ;; Use lines like the following if your version of MH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 ;; is in a special place.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 ;(setq mh-progs "/usr/dist/pkgs/mh/bin.svr4/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 ;(setq mh-lib "/usr/dist/pkgs/mh/lib.svr4/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 ;;; resize-minibuffer-mode makes the minibuffer automatically
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 ;;; resize as necessary when it's too big to hold its contents.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 (autoload 'resize-minibuffer-mode "rsz-minibuf" nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 (resize-minibuffer-mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 (setq resize-minibuffer-window-exactly nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
572 ;; Create a single detached minibuffer used by all frames.
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
573 ;; Uncomment to try this out.
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
574 ;(when running-xemacs
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
575 ; (setq initial-frame-plist '(minibuffer nil))
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
576 ; (setq default-frame-plist '(minibuffer nil))
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
577 ; (setq default-minibuffer-frame
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
578 ; (make-frame
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
579 ; '(minibuffer only
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
580 ; width 86
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
581 ; height 1
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
582 ; menubar-visible-p nil
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
583 ; default-toolbar-visible-p nil
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
584 ; name "minibuffer"
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
585 ; top -2
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
586 ; left -2
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
587 ; has-modeline-p nil)))
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
588 ; (frame-notice-user-settings))
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
589
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 ;;; ********************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 ;;; W3 is a browser for the World Wide Web, and takes advantage of the very
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 ;;; latest redisplay features in XEmacs. You can access it simply by typing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 ;;; 'M-x w3'; however, if you're unlucky enough to be on a machine that is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 ;;; behind a firewall, you will have to do something like this first:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 ;(setq w3-use-telnet t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 ; ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 ; ;; If the Telnet program you use to access the outside world is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 ; ;; not called "telnet", specify its name like this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 ; w3-telnet-prog "itelnet"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 ; ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 ; ;; If your Telnet program adds lines of junk at the beginning
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 ; ;; of the session, specify the number of lines here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 ; w3-telnet-header-length 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 ; )