62 lines
2.3 KiB
EmacsLisp
62 lines
2.3 KiB
EmacsLisp
;; Disable Emacs' GTK decorations. Done in this file otherwise done too late.
|
|
(menu-bar-mode -1)
|
|
(tool-bar-mode -1)
|
|
(scroll-bar-mode -1)
|
|
|
|
;; Disable the modeline. Done in this file for the same reason above
|
|
(setq-default mode-line-format nil)
|
|
|
|
;; Define the leader-key to use.
|
|
(defconst leader-key "SPC")
|
|
|
|
;; Straight.el bootstrap
|
|
(defvar bootstrap-version)
|
|
(let ((bootstrap-file
|
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) ;
|
|
(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)
|
|
|
|
;; Always make sure packages are installed to the system
|
|
(setq use-package-always-ensure t)
|
|
|
|
;; Add external e-lisp files to the load-path
|
|
(add-to-list 'load-path (concat user-emacs-directory
|
|
(convert-standard-filename "lisp/")))
|
|
|
|
;; Load the code of some external files
|
|
(load "interface")
|
|
(load "editor")
|
|
(load "org-mode")
|
|
(load "keybinds")
|
|
(load "performance")
|
|
(load "language")
|
|
|
|
;; Load user configuration
|
|
(add-to-list 'load-path (concat user-emacs-directory
|
|
(convert-standard-filename "user/")))
|
|
(load "init")
|
|
(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.
|
|
)
|