-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.el
101 lines (67 loc) · 2.73 KB
/
config.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("org" . "https://orgmode.org/elpa/")
("melpa" . "https://melpa.org/packages/")))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)
(setq backup-directory-alist `(("." . "~/.saves")))
(setq skeleton-pair t)
(global-set-key "[" 'skeleton-pair-insert-maybe)
(global-set-key "(" 'skeleton-pair-insert-maybe)
(global-set-key "{" 'skeleton-pair-insert-maybe)
(global-set-key "'" 'skeleton-pair-insert-maybe)
(global-set-key "\"" 'skeleton-pair-insert-maybe)
(global-set-key "<" 'skeleton-pair-insert-maybe)
(add-to-list 'load-path (concat user-emacs-directory "elisp"))
(use-package counsel
:bind
("M-x" . counsel-M-x)
("C-x C-m" . counsel-M-x)
("C-x C-f" . counsel-find-file)
("C-x c k" . counsel-yank-pop))
(use-package ivy
:bind
("C-x s" . swiper)
("C-x C-r" . ivy-resume)
:config
(ivy-mode 1)
(setq ivy-use-virtual-buffers nil)
(define-key read-expression-map (kbd "C-r") 'counsel-expression-history))
(use-package which-key
:defer 0
:diminish which-key-mode
:config
(which-key-mode)
(setq which-key-idle-delay 1))
(add-to-list 'load-path (concat user-emacs-directory "elisp"))
(load-file "~/.emacs.d/elisp/LSP/lsp-mode.el")
(load-file "~/.emacs.d/elisp/LSP/lsp-treemacs.el")
(load-file "~/.emacs.d/elisp/LSP/lsp-ui.el")
(load-file "~/.emacs.d/elisp/Autocomplete/company.el")
(use-package flycheck
:hook (lsp-deferred . flycheck-mode))
;;(load-file "~/.emacs.d/elisp/Language/Web/Frontend/typescript.el")
;;(load-file "~/.emacs.d/elisp/Language/Web/Frontend/javascript.el")
;;(load-file "~/.emacs.d/elisp/Language/Web/Frontend/vue.el")
;; (load-file "~/.emacs.d/elisp/Language/Web/Backend/php.el")
;; (load-file "~/.emacs.d/elisp/Language/Web/Backend/go.el")
;;(load-file "~/.emacs.d/elisp/Language/Low Level/c-c++.el")
;;(load-file "~/.emacs.d/elisp/Language/Low Level/rust.el")
;;(load-file "~/.emacs.d/elisp/Language/High Level/python.el")
;;(load-file "~/.emacs.d/elisp/Language/High Level/lua.el")
;;(load-file "~/.emacs.d/elisp/Language/High Level/ruby.el")
;;(load-file "~/.emacs.d/elisp/Language/Functional Programing/haskell.el")
(tool-bar-mode -1)
(scroll-bar-mode -1)
(menu-bar-mode -1)
(load-file "~/.emacs.d/elisp/GUI/theme.el")
(load-file "~/.emacs.d/elisp/GUI/centaurtabs.el")
(load-file "~/.emacs.d/elisp/GUI/treemacs.el")
(load-file "~/.emacs.d/elisp/GUI/dashboard.el")
(load-file "~/.emacs.d/elisp/GUI/modeline.el")
(load-file "~/.emacs.d/elisp/GUI/font.el")
(load-file "~/.emacs.d/elisp/GUI/displaynumber.el")