From f9d4ec66c7b4b3ed441e8dbfbbb194d083f5a303 Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Tue, 14 Feb 2023 09:02:40 +0200 Subject: [PATCH] Move init to custom-init --- .gitignore | 3 +++ README.MD | 7 ++++++ init.el => custom-init.el | 50 +++++++++------------------------------ 3 files changed, 21 insertions(+), 39 deletions(-) rename init.el => custom-init.el (67%) diff --git a/.gitignore b/.gitignore index ec95d20..e82b8d3 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/README.MD b/README.MD index 2aa7167..6f81df7 100644 --- a/README.MD +++ b/README.MD @@ -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) +``` diff --git a/init.el b/custom-init.el similarity index 67% rename from init.el rename to custom-init.el index 2bfd4c7..47de4fe 100644 --- a/init.el +++ b/custom-init.el @@ -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