This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
dianciemacs/init.el

67 lines
2 KiB
EmacsLisp
Raw Normal View History

;;; 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.
;; Maintained by devraza <thedevraza@proton.me>
;;
;;; Code:
;; 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.
(defconst leader-key "SPC")
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-12-18 19:28:44 +00:00
;; Disable unnecessary warnings
2022-12-21 11:28:56 +00:00
(setq warning-minimum-level :emergency)
2022-12-18 19:28:44 +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
(convert-standard-filename "lisp/")))
2022-11-08 17:53:06 +00:00
2022-11-08 17:53:07 +00:00
;; Load the code of some external files
(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
(convert-standard-filename "user/")))
2022-11-12 18:58:50 +00:00
(load "init")
2022-11-20 08:03:40 +00:00
;; Make gc pauses faster by decreasing the threshold.
(setq gc-cons-threshold (* 2 1000 1000))
;;; init.el ends here