-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemacs-launcher-looks.el
58 lines (41 loc) · 1.27 KB
/
emacs-launcher-looks.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
56
57
58
(set-frame-name "Emacs Launcher")
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
;; Setup some text for the user to look at in the *scratch* buffer if things fail...
(erase-buffer)
(insert "
Hi!
Don't be afraid...
If the launcher fails to hide this window, just minimize it,
close it (i.e kill Emacs), or type one of the following keys:
h - hide launcher
o - open launcher and then hide
q - quit launcher
")
(toggle-read-only)
;; Some useful keys to have in the scratch buffer
(local-set-key (kbd "o") 'emacs-launcher)
(local-set-key (kbd "h") 'hide-launcher)
(local-set-key (kbd "q") 'save-buffers-kill-terminal)
;; So that we can paste stuff at the anything prompt
(global-set-key (kbd "C-v") 'yank)
;;(add-to-list 'load-path "c:/Users/mdahse/Dropbox/work/home/newlisp")
;; Set some beautiful colors...
(set-background-color "black")
(set-foreground-color "green")
(set-cursor-color "red")
(set-face-attribute 'default (selected-frame)
:width 'normal
:weight 'normal
:slant 'normal)
;; Change some faces to match the colors better.
(set-face-attribute 'highlight nil :background "chocolate")
(defun setup-frame ()
(modify-frame-parameters
emacs-launcher-frame
'((width . 180)
(height . 30)
(top . 200)
(left . 200))))
(setup-frame)