-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpjb-frame-server-old.el
55 lines (42 loc) · 1.48 KB
/
pjb-frame-server-old.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
;;;
;;; This is superseded by the mfod command (using emacsclient to make frames).
;;;
(defparameter *frame-server-job-ticket* "~/frame-emacs"
"Path to the job-ticket file.")
(defun frame-server (&optional token-path)
(setf token-path (or token-path *frame-server-job-ticket*))
(when (file-exists-p token-path)
(find-file token-path)
(make-frame-on-display
(delete ?\n (prog1 (buffer-string)
(kill-buffer (current-buffer))
(delete-file token-path)))
(list (cons 'name (format "n%s" (frame-parameter nil 'name)))))))
(defun frame-server-start ()
(interactive)
(run-at-time nil 5 (function frame-server) nil))
(frame-server-start)
;;;
;;; Not used anymore.
;;;
(defvar *galatea-frame* nil)
(defun open-frame-on-galatea ()
(interactive)
(unless *galatea-frame*
(setq *galatea-frame*
(make-frame-on-display "galatea.informatimago.com:0.0")))
(set-frame-size *galatea-frame* 96 40)
(let ((current-frame (selected-frame)))
(select-frame *galatea-frame*)
(set-background-color "#102040")
(set-foreground-color "#80f0f0")
;;(set-face-foreground 'font-lock-comment-face "Green")
;;(set-face-foreground 'font-lock-function-name-face "Yellow")
(select-frame current-frame))
(setq common-lisp-hyperspec-frame *galatea-frame*))
(defun reopen-frame-on-galatea ()
(interactive)
(when *galatea-frame*
(delete-frame *galatea-frame*)
(setq *galatea-frame* nil))
(open-frame-on-galatea))