equal
deleted
inserted
replaced
4 ;;; ~/.emacs.d/init.el (~/.emacs) |
4 ;;; ~/.emacs.d/init.el (~/.emacs) |
5 |
5 |
6 ;;; Code: |
6 ;;; Code: |
7 (add-to-list 'load-path "~/.emacs.d/elisp") ; set default emacs load path |
7 (add-to-list 'load-path "~/.emacs.d/elisp") ; set default emacs load path |
8 |
8 |
9 (setq-default |
9 (setq custom-file (concat user-emacs-directory "custom.el")) ; don't auto-edit init.el |
10 gc-cons-threshold 20000000 ; gc every 20 MB allocated (form flx-ido docs) |
10 |
|
11 (setq-default |
|
12 gc-cons-threshold 20000000 ; gc every 20 MB allocated |
11 inhibit-splash-screen t ; disable splash screen |
13 inhibit-splash-screen t ; disable splash screen |
12 truncate-lines t ; truncate, not wrap, lines |
14 truncate-lines t ; truncate, not wrap, lines |
13 indent-tabs-mode nil ; only uses spaces for indentation |
15 indent-tabs-mode nil ; only uses spaces for indentation |
14 split-width-threshold 181 ; min width to split window horizontially |
16 split-width-threshold 181 ; min width to split window horizontially |
15 split-height-threshold 120 ; min width to split window vertically |
17 split-height-threshold 120 ; min width to split window vertically |
69 orderless consult marginalia magit forge magit-todos markdown-mode hgignore-mode move-text paredit |
71 orderless consult marginalia magit forge magit-todos markdown-mode hgignore-mode move-text paredit |
70 rainbow-delimiters json-mode json-reformat flycheck treesit-auto ibuffer-project |
72 rainbow-delimiters json-mode json-reformat flycheck treesit-auto ibuffer-project |
71 solarized-theme terraform-mode visual-regexp yasnippet yaml-mode |
73 solarized-theme terraform-mode visual-regexp yasnippet yaml-mode |
72 emmet-mode)) |
74 emmet-mode)) |
73 |
75 |
74 ;; (custom-set-variables |
|
75 ;; '(package-selected-packages |
|
76 ;; '(magit magit-ido ansible-doc company-ansible jinja2-mode ac-js2 auto-complete zencoding-mode |
|
77 ;; yasnippet yaml-mode visual-regexp terraform-mode solarized-theme smex rg rainbow-delimiters |
|
78 ;; paredit move-text markdown-mode json-reformat json-mode hgignore-mode haskell-mode flycheck flx-ido expand-region exec-path-from-shell company))) |
|
79 |
|
80 |
|
81 |
76 |
82 ;;; custom requires |
77 ;;; custom requires |
83 (require 'c-init) |
78 (require 'c-init) |
84 (require 'ansible-init) |
79 (require 'ansible-init) |
85 |
80 |
191 |
186 |
192 |
187 |
193 ;;; yasnippets |
188 ;;; yasnippets |
194 (with-eval-after-load 'yasnippet |
189 (with-eval-after-load 'yasnippet |
195 (setq yas-snippet-dirs (remq 'yas-installed-snippets-dir yas-snippet-dirs))) |
190 (setq yas-snippet-dirs (remq 'yas-installed-snippets-dir yas-snippet-dirs))) |
196 (setq-default yas-prompt-functions '(yas-ido-prompt yas-dropdown-prompt)) ; use ido for multiple snippets |
191 (setq-default yas-prompt-functions '(yas-completing-read yas-dropdown-prompt)) ; use completing-read for multiple snippets |
197 (yas-global-mode t) |
192 (yas-global-mode t) |
198 |
193 |
199 |
194 |
200 ;;; markdown-mode |
195 ;;; markdown-mode |
201 (add-hook 'markdown-mode-hook 'flyspell-mode) |
196 (add-hook 'markdown-mode-hook 'flyspell-mode) |
246 (global-set-key (kbd "C-M-%") 'vr/query-replace) |
241 (global-set-key (kbd "C-M-%") 'vr/query-replace) |
247 (global-set-key (kbd "M-%") 'vr/replace) |
242 (global-set-key (kbd "M-%") 'vr/replace) |
248 |
243 |
249 (provide 'init) |
244 (provide 'init) |
250 ;;; init.el ends here |
245 ;;; init.el ends here |
251 (custom-set-variables |
|
252 ;; custom-set-variables was added by Custom. |
|
253 ;; If you edit it by hand, you could mess it up, so be careful. |
|
254 ;; Your init file should contain only one such instance. |
|
255 ;; If there is more than one, they won't work right. |
|
256 '(package-selected-packages |
|
257 '(magit yasnippet yaml-mode visual-regexp terraform-mode solarized-theme rg rainbow-delimiters paredit move-text markdown-mode json-reformat json-mode jinja2-mode hgignore-mode haskell-mode flycheck expand-region exec-path-from-shell company-ansible ansible-doc emmet-mode vertico orderless consult marginalia treesit-auto))) |
|
258 (custom-set-faces |
|
259 ;; custom-set-faces was added by Custom. |
|
260 ;; If you edit it by hand, you could mess it up, so be careful. |
|
261 ;; Your init file should contain only one such instance. |
|
262 ;; If there is more than one, they won't work right. |
|
263 ) |
|