-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmac-init.el
More file actions
45 lines (35 loc) · 1.19 KB
/
mac-init.el
File metadata and controls
45 lines (35 loc) · 1.19 KB
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
;; Change M-h to help-command prefix
(global-set-key (kbd "M-h") 'help-command)
(setq inhibit-startup-screen t)
(setq make-backup-files nil)
(menu-bar-mode -1)
(when window-system
(scroll-bar-mode -1)
(tool-bar-mode -1))
;; (toggle-frame-maximized)
(toggle-frame-fullscreen)
(global-display-line-numbers-mode 1)
(setq tab-always-indent 'complete)
(icomplete-mode)
(electric-pair-mode)
;; Quickly open the init.el file
(defun open-init-file()
(interactive)
(find-file "~/.emacs.d/init.el"))
(global-set-key (kbd "M-h ;") 'open-init-file)
(global-company-mode 1)
(setq company-minimum-prefix-length 1)
(setq company-idle-delay 0.2)
(global-set-key (kbd "M-h M-f") 'find-function)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages '(company)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)