-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
39 lines (34 loc) · 1.03 KB
/
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
(package-initialize)
;; add custom configurations path to load path
(add-to-list 'load-path "~/.emacs.d/inits")
;; function for opening main configuration file
(defun open-init-file()
(interactive)
(find-file "~/.emacs.d/init.el"))
;; function for buffer indent
(defun indent-buffer()
"Indent the currently visited buffer."
(interactive)
(indent-region (point-min) (point-max)))
(defun indent-region-or-buffer()
(interactive)
(save-excursion
(if (region-active-p)
(progn
(indent-region (region-beginning) (region-end))
(message "Indented selected region."))
(progn
(indent-buffer)
(message "Indented buffer.")))))
;; configurations for packages
(require 'init-packages)
;; configurations for ui
(require 'init-ui)
;; configurations for better defaults
(require 'init-better-defaults)
;; configurations for key bindings
(require 'init-key-bindings)
;; custom configurations
(require 'init-custom)
;; configuration for custom group
(setq custom-file (expand-file-name "inits/init-custom.el" user-emacs-directory))