summaryrefslogtreecommitdiff
path: root/init.el
blob: efb7ba8e47fe2e84835ba1e00032efcf9cdfd775 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

;;; Code:

;; Load path
(add-to-list 'load-path "~/.emacs.d/lisp/")
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")

;; Melpa support
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)

;; https://stackoverflow.com/questions/31079204/emacs-package-install-script-in-init-file
(package-initialize)


(setq package-list
    '(tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org web-mode cmake-ide rtags emojify))

;; Fetch the list of packages available
(unless package-archive-contents
  (package-refresh-contents))

; Install the missing packages
(dolist (package package-list)
  (unless (package-installed-p package)
    (package-install package)))

;; The default is 800 kilobytes.  Measured in bytes.
(setq gc-cons-threshold (* 50 1000 1000))

;; Profile emacs startup
(add-hook 'emacs-startup-hook
          (lambda ()
            (message "*** Emacs loaded in %s seconds with %d garbage collections."
                     (emacs-init-time "%.2f")
                     gcs-done)))

;; Theme
(load-theme 'vs-light t)
(set-face-attribute 'region nil :background "#ffffcd")
;; (setq debug-on-error t) Uncomment if you would liek to debug errors!

(require 'evil)
(evil-mode 1)

(require 'general)
(require 'cpp)
(require 'text)
(require 'org-custom)
(require 'web)
(require 'markdown)

(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
   '("5859f61b502aa335b502b231c86a051210cb5974f74966e620c31be3a966659f" "32a9fa0f3722e679ed77a28aed3ae99161ef54dc27c35fd19e68e0410633960b" default))
 '(org-agenda-files (list org-directory))
 '(org-directory "~/Documents/org")
 '(package-selected-packages
   '(ido-vertical-mode ## smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org)))
(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.
 '(org-block ((t (:inherit fixed-pitch))))
 '(org-code ((t (:inherit (shadow fixed-pitch)))))
 '(org-document-info ((t (:foreground "dark orange"))))
 '(org-document-info-keyword ((t (:inherit (shadow fixed-pitch)))))
 '(org-document-title ((t (:inherit default :weight normal :foreground "#000000" :family "Sans Serif" :height 1.5 :underline t :weight:bold))))
 '(org-level-1 ((t (:inherit default :weight normal :foreground "#000000" :family "Sans Serif" :height 1.1 :weight bold))))
 '(org-level-2 ((t (:inherit default :weight normal :foreground "#000000" :family "Sans Serif" :height 1.0))))
 '(org-level-3 ((t (:inherit default :weight normal :foreground "#000000" :family "Sans Serif" :height 0.9))))
 '(org-level-4 ((t (:inherit default :weight normal :foreground "#000000" :family "Sans Serif" :height 0.8))))
 '(org-level-5 ((t (:inherit default :weight normal :foreground "#000000" :family "Sans Serif"))))
 '(org-level-6 ((t (:inherit default :weight normal :foreground "#000000" :family "Sans Serif"))))
 '(org-level-7 ((t (:inherit default :weight normal :foreground "#000000" :family "Sans Serif"))))
 '(org-level-8 ((t (:inherit default :weight normal :foreground "#000000" :family "Sans Serif"))))
 '(org-link ((t (:foreground "royalblue" :underline t))))
 '(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch)))))
 '(org-property-value ((t (:inherit fixed-pitch))) t)
 '(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch)))))
 '(org-table ((t (:inherit fixed-pitch :foreground "#83a598"))))
 '(org-tag ((t (:inherit (shadow fixed-pitch) :weight bold :height 0.8))))
 '(org-verbatim ((t (:inherit (shadow fixed-pitch))))))
;;; init.el ends here