-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.el
52 lines (46 loc) · 1.69 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
;;; -*- lexical-binding: t; -*-
;;; package --- Summary
;;; Commentary:
;;; Code:
;; Taken from foom-emacs!
;; A big contributor to startup times is garbage collection. We up the gc
;; threshold to temporarily prevent it from running, then reset it later by
;; enabling `gcmh-mode'. Not resetting it will cause stuttering/freezes.
(setq gc-cons-threshold most-positive-fixnum)
;(load "~/.emacs.d/messages") ;; Uncomment to debug startup times
(setq load-prefer-newer t)
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
(load "~/.emacs.d/init-packages")
(eval-when-compile
(require 'use-package))
(load "~/.emacs.d/use-package")
(load "~/.emacs.d/variables")
;(load "~/.emacs.d/customvariables") ;; Uncomment if you want to add custom variables here
(load "~/.emacs.d/functions")
(load "~/.emacs.d/alias")
(load "~/.emacs.d/automode")
(load "~/.emacs.d/hooks")
(load "~/.emacs.d/shortcuts")
;(add-to-list 'default-frame-alist '(fullscreen . maximized)) ;; Maximize window at startup
(column-number-mode t) ;; Show column number
(global-whitespace-mode t)
(global-display-line-numbers-mode t)
(ido-mode t)
(menu-bar-mode -1) ;; Hide menubar
(put 'upcase-region 'disabled nil)
(savehist-mode 1)
(scroll-bar-mode -1) ;; Hide scrollbar
(tool-bar-mode -1) ;; Hide toolbar
(put 'downcase-region 'disabled nil)
(set-default 'case-fold-search nil) ; Case sensitive TAGS search
(diminish 'abbrev-mode "Abv")
(diminish 'auto-revert-mode "")
(diminish 'eldoc-mode "")
(diminish 'git-gutter-mode "")
(diminish 'global-whitespace-mode "")
(diminish 'lsp-lens "")
(load "~/.emacs.d/faces")
;(load "~/.emacs.d/customfaces") ;; Uncomment if you want to add custom faces here
(set-language-environment "UTF-8")
(provide 'init)
;;;