File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 22
22
(add-to-list 'default-frame-alist '(font . " Menlo-13" ))
23
23
(set-fontset-font " fontset-default" 'han '(" STHeiti" ))
24
24
))
25
-
25
+
26
26
(config-add-hook 'after-make-console-frame-hooks
27
27
; ; 控制台下 C-<方向键> 修复
28
28
(let ((map (if (boundp 'input-decode-map )
43
43
(mwheel-install )
44
44
)
45
45
)
46
-
46
+
47
47
(if (and (eq system-type 'darwin ) *is-frame*)
48
48
(config-bind-global-key (kbd " C-M-f" )
49
49
; ; 使用C-M-f触发全屏模式
50
50
(if (fboundp 'toggle-frame-fullscreen )
51
51
(toggle-frame-fullscreen )
52
52
)
53
53
))
54
-
54
+
55
55
(config-bind-global-key (kbd " C-z" )
56
56
; ; 控制台下使用`C-z`暂停程序
57
57
(unless window-system (suspend-frame ))
Original file line number Diff line number Diff line change 10
10
(config-after-fetch-require 'ido-select-window
11
11
(global-set-key (kbd " C-x o" ) 'ido-select-window ))
12
12
)
13
-
13
+
14
14
(config-bind-global-key (kbd " C-x 1" )
15
15
; ; 删除其它面板,如果没有其它面板就恢复前一个面板布局
16
16
(if (and winner-mode (equal (selected-window ) (next-window )))
Original file line number Diff line number Diff line change
1
+ ; ;; package -- YAML 模式
2
+ ; ;; Commentary:
3
+ ; ;; Code:
4
+
5
+ (add-to-list 'auto-mode-alist '(" \\ .yml\\ '" . yaml-mode))
6
+
7
+ (config-after-fetch-require 'yaml-mode
8
+ (add-hook 'yaml-mode-hook
9
+ '(lambda ()
10
+ (define-key yaml-mode-map " \C -m" 'newline-and-indent )))
11
+ )
12
+
13
+ (provide 'init-yaml )
14
+
15
+ ; ; Local Variables:
16
+ ; ; coding: utf-8
17
+ ; ; End:
18
+
19
+ ; ;; init-yaml.el ends here
You can’t perform that action at this time.
0 commit comments