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

62 lines
2.3 KiB
EmacsLisp
Raw Normal View History

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
(menu-bar-mode -1)
(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-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")
(load "performance")
2022-11-12 17:50:34 +00:00
(load "language")
2022-11-12 18:58:50 +00:00
;; Load user configuration
(add-to-list 'load-path (concat user-emacs-directory
(convert-standard-filename "user/")))
(load "init")
2022-11-13 16:46:40 +00: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
'("be84a2e5c70f991051d4aaf0f049fa11c172e5d784727e0b525565bb1533ec78" "944d52450c57b7cbba08f9b3d08095eb7a5541b0ecfb3a0a9ecd4a18f3c28948" "d9a28a009cda74d1d53b1fbd050f31af7a1a105aa2d53738e9aa2515908cac4c" "e8567ee21a39c68dbf20e40d29a0f6c1c05681935a41e206f142ab83126153ca" 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.
)