-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
46 lines (33 loc) · 967 Bytes
/
init.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
(defconst *is-mac* (eq system-type 'darwin))
(defconst *is-linux* (eq system-type 'gnu/linux))
(when *is-mac*
(setq
mac-command-modifier 'control
mac-option-modifier 'meta
mac-control-modifier 'super
mac-function-modifier 'hyper))
(load-theme 'manoj-dark)
(setq package--init-file-ensured t)
(defun emacs-file (file)
(expand-file-name file user-emacs-directory))
(defvar emacs.d-files
'("custom.el"
"global.el"
"keys.el"
"packages.el"))
(dolist (file emacs.d-files)
(load (emacs-file file)))
(setq custom-file (emacs-file "custom.el"))
;;;
(add-to-list 'initial-frame-alist '(fullscreen . maximized))
(defun open-windows ()
"Fills frame with windows of width >= 80."
(interactive)
(delete-other-windows)
(let ((number-of-windows (/ (window-width) 80)))
(dotimes (_ (1- number-of-windows))
(split-window-right))
(balance-windows)))
(add-hook 'window-setup-hook 'open-windows)
;;; Run at start
(shell)