Mercurial > emacs
annotate etc/emacs.csh @ 75050:27f521750ce8
(Bindat Spec): Fix Texinfo usage.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 02 Jan 2007 20:58:02 +0000 |
parents | 3681678d3d86 |
children | 0259a1711394 a8190f7e546e |
rev | line source |
---|---|
71189
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
1 # Copyright (c) 1999, 2003, 2006 |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
2 # Free software Foundation, Inc. |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
3 # |
25853 | 4 # This defines a csh command named `edit' which resumes an |
5 # existing Emacs or starts a new one if none exists. | |
6 # One way or another, any arguments are passed to Emacs to specify files | |
7 # (provided you have loaded `resume.el'). | |
8 # - Michael DeCorte | |
9 | |
10 # These are the possible values of $whichjob | |
11 # 1 = new ordinary emacs (the -nw is so that it doesn't try to do X) | |
12 # 2 = resume emacs | |
13 # 3 = new emacs under X (-i is so that you get a reasonable icon) | |
14 # 4 = resume emacs under X | |
15 # 5 = new emacs under suntools | |
16 # 6 = resume emacs under suntools | |
17 # 7 = new emacs under X and suntools - doesn't make any sense, so use X | |
18 # 8 = resume emacs under X and suntools - doesn't make any sense, so use X | |
19 set EMACS_PATTERN="^\[[0-9]\] . Stopped ............ $EMACS" | |
20 | |
21 alias edit 'set emacs_command=("emacs -nw \!*" "fg %emacs" "emacs -i \!* &"\ | |
22 "emacsclient \!* &" "emacstool \!* &" "emacsclient \!* &" "emacs -i \!* &"\ | |
23 "emacsclient \!* &") ; \ | |
24 jobs >! $HOME/.jobs; grep "$EMACS_PATTERN" < $HOME/.jobs >& /dev/null; \ | |
25 @ isjob = ! $status; \ | |
26 @ whichjob = 1 + $isjob + $?DISPLAY * 2 + $?WINDOW_PARENT * 4; \ | |
27 test -S ~/.emacs_server && emacsclient \!* \ | |
28 || echo `pwd` \!* >! ~/.emacs_args && eval $emacs_command[$whichjob]' | |
52401 | 29 |
71189
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
30 #COPYING PERMISSIONS: |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
31 # |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
32 # Permission is hereby granted, free of charge, to any person obtaining |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
33 # a copy of this file, to deal in the file without restriction, including |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
34 # without limitation the rights to use, copy, modify, merge, publish, |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
35 # distribute, sublicense, and/or sell copies of the file, and to |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
36 # permit persons to whom the file is furnished to do so, subject to |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
37 # the following condition: |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
38 # |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
39 # The above copyright notice and this permission notice shall be |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
40 # included in all copies or substantial portions of the file. |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
41 |
3681678d3d86
Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
42 |
52401 | 43 # arch-tag: 433d58df-15b9-446f-ad37-f0393e3a23d4 |