2022-11-16 21:10:34 +00:00
|
|
|
;;; init.el --- Dianciemacs -*- lexical-binding: t; -*-
|
|
|
|
;;; Commentary:
|
|
|
|
;;
|
|
|
|
;; This is a minimal and elegant Emacs configuration framework.
|
|
|
|
;; This project aims to keep/make Emacs fast, aesthetic, and beginner-friendly.
|
2023-07-01 18:44:30 +01:00
|
|
|
;; Maintained by devraza <devraza@outlook.com>
|
2022-11-16 21:10:34 +00:00
|
|
|
;;
|
|
|
|
;;; Code:
|
|
|
|
|
2022-11-20 16:59:50 +00:00
|
|
|
;; Increase the threshold - performance
|
|
|
|
(setq gc-cons-threshold (* 50 1000 1000))
|
|
|
|
|
2022-11-08 17:53:06 +00:00
|
|
|
;; Disable Emacs' GTK decorations. Done in this file otherwise done too late.
|
2022-11-08 17:53:04 +00:00
|
|
|
(tool-bar-mode -1)
|
|
|
|
(scroll-bar-mode -1)
|
|
|
|
|
2022-11-08 17:53:07 +00:00
|
|
|
;; Disable the modeline. Done in this file for the same reason above
|
|
|
|
(setq-default mode-line-format nil)
|
|
|
|
|
2022-11-08 22:10:50 +00:00
|
|
|
;; Define the leader-key to use.
|
2022-11-08 22:05:28 +00:00
|
|
|
(defconst leader-key "SPC")
|
|
|
|
|
2023-06-26 18:12:37 +01:00
|
|
|
;; Emacs 30 with straight.el
|
|
|
|
(setq straight-repository-branch "develop")
|
|
|
|
|
2024-01-15 18:19:27 +00:00
|
|
|
;; Ignore warnings
|
|
|
|
(setq warning-minimum-level :error)
|
|
|
|
|
2022-11-08 17:53:04 +00:00
|
|
|
;; Straight.el bootstrap
|
|
|
|
(defvar bootstrap-version)
|
|
|
|
(let ((bootstrap-file
|
2022-11-08 22:10:50 +00:00
|
|
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) ;
|
2022-11-08 17:53:04 +00:00
|
|
|
(bootstrap-version 6))
|
|
|
|
(unless (file-exists-p bootstrap-file)
|
|
|
|
(with-current-buffer
|
|
|
|
(url-retrieve-synchronously
|
|
|
|
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
|
|
|
|
'silent 'inhibit-cookies)
|
|
|
|
(goto-char (point-max))
|
|
|
|
(eval-print-last-sexp)))
|
|
|
|
(load bootstrap-file nil 'nomessage))
|
|
|
|
|
|
|
|
;; Install use-package for simplicity, and use straight.el for it by default
|
|
|
|
(straight-use-package 'use-package)
|
|
|
|
(setq straight-use-package-by-default t)
|
|
|
|
|
2022-11-08 17:53:07 +00:00
|
|
|
;; Always make sure packages are installed to the system
|
|
|
|
(setq use-package-always-ensure t)
|
2022-11-08 17:53:04 +00:00
|
|
|
|
2022-11-08 17:53:07 +00:00
|
|
|
;; Add external e-lisp files to the load-path
|
2022-11-08 17:53:06 +00:00
|
|
|
(add-to-list 'load-path (concat user-emacs-directory
|
2023-07-01 16:42:05 +01:00
|
|
|
(convert-standard-filename "lisp/")))
|
|
|
|
|
|
|
|
;; Set theme to `hazakura', Dianicemacs' default
|
|
|
|
(use-package autothemer)
|
|
|
|
(use-package hazakura-theme
|
|
|
|
:straight (:package "hazakura" :host github
|
|
|
|
:repo "devraza/hazakura-emacs"))
|
|
|
|
(load-theme 'hazakura t)
|
2022-11-08 17:53:06 +00:00
|
|
|
|
2022-11-08 17:53:07 +00:00
|
|
|
;; Load the code of some external files
|
2022-11-12 17:53:29 +00:00
|
|
|
(load "interface")
|
|
|
|
(load "editor")
|
|
|
|
(load "org-mode")
|
|
|
|
(load "keybinds")
|
2022-11-13 18:41:10 +00:00
|
|
|
(load "languages")
|
2022-11-12 18:58:50 +00:00
|
|
|
|
|
|
|
;; Load user configuration
|
|
|
|
(add-to-list 'load-path (concat user-emacs-directory
|
2024-01-15 19:29:02 +00:00
|
|
|
(convert-standard-filename "../diancite/")))
|
2022-11-12 18:58:50 +00:00
|
|
|
(load "init")
|
2022-11-16 21:10:34 +00:00
|
|
|
|
2022-11-20 08:03:40 +00:00
|
|
|
;; Make gc pauses faster by decreasing the threshold.
|
|
|
|
(setq gc-cons-threshold (* 2 1000 1000))
|
|
|
|
|
2022-11-16 21:10:34 +00:00
|
|
|
;;; init.el ends here
|
2023-07-01 13:23:39 +01:00
|
|
|
(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.
|
|
|
|
'(custom-safe-themes
|
|
|
|
'("d41809cb620c823c37cbc55e99adb7d5a4bf5d7237b81bc8b6cfd64a4a2dd7ed"
|
|
|
|
default)))
|
|
|
|
(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.
|
|
|
|
)
|