Move init to custom-init

This commit is contained in:
Maciej 2023-02-14 09:02:40 +02:00
parent 30193188f4
commit f9d4ec66c7
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
3 changed files with 21 additions and 39 deletions

3
.gitignore vendored
View file

@ -24,3 +24,6 @@ ac-comphist.dat
!straight/versions/default.el
/speed-type
/tutorial
# Ignore actual init as it can contain private data
init.el

View file

@ -15,3 +15,10 @@ As of current iteration, I avoid usage of Evil modes, instead focusing of usage
```bash
git clone git@github.com:maciej-szlosarczyk/emacs.git ~/.emacs.d
```
And then put the following lines into init.el
```emacs
(require '+custom-init "$HOME/.emacs.d/custom-init.el")
(provide 'init)
```

View file

@ -1,7 +1,14 @@
;;; Init.el -- Summary -*- lexical-binding: t; -*-
;;; +custom-init.el --- summary
;; Author: Maciej Szlosarczyk
;; Maintainer: Maciej Szlosarczyk
;; Version: 0.1-snapshot
;;; Commentary:
;; custom-init does a thing.
;;; Code:
;; list the repositories containing them
;; Set GC at 300 MB for startup
(setq gc-cons-threshold 300000000)
@ -75,43 +82,8 @@
;; Diminish modeline litter
(require '+custom-pkg-diminish "$HOME/.emacs.d/pkg/diminish.el")
(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.
'(safe-local-variable-values
'((lsp-rust-analyzer-linked-projects .
["./native/semmel/Cargo.toml"])
(lsp-enabled-clients sorbet-ls)
(cider-clojure-cli-aliases . "dev")
(lsp-elixir-project-dir . "/Users/maciej/Development/mindvalley/connect/app")
(lsp-lens-mode)
(lsp-lens-enable)
(cider-shadow-default-options . ":app")
(cider-preferred-build-tool . lein)
(cider-shadow-default-options . "app")
(cider-default-cljs-repl . shadow)
(cider-preferred-build tool . lein)
(cider-repl-display-help-banner)
(column-enforce-column . 10000)
(haskell-process-use-ghci . t)
(haskell-indent-spaces . 4)))
'(warning-suppress-types '((comp) (lsp-mode))))
;; Improve font settings in Markdown code
(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.
'(font-lock-constant-face ((((type graphic)) (:foreground "#dfaf8f")) (((min-colors 256)) (:foreground "brightred")) (t (:foreground "brightred"))))
'(markdown-code-face ((t (:inherit fixed-pitch :family "D2Coding Ligature"))))
'(mmm-default-submode-face ((t nil)))
'(treemacs-root-face ((t (:inherit font-lock-constant-face :underline t :height 1)))))
;; Restore GC to normal, but still high
(setq gc-cons-threshold 100000000)
(provide 'init)
;;; init.el ends here
(provide '+custom-init)
;;; custom-init.el ends here