-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
108 lines (83 loc) · 3.32 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
;;; package --- Summary
;;; Commentary:
;;; Code:
(setq inhibit-startup-message t)
;;; Packages
(package-initialize)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(use-package use-package
:config
(setq use-package-always-ensure t))
;;; Cursor style
(setq-default cursor-type '(bar . 10))
;;; Line and column numbers
(line-number-mode 1)
(column-number-mode 1)
;; Autoparentheses
(electric-pair-mode 1)
;;; Disabling things
(menu-bar-mode -1)
(toggle-scroll-bar -1)
(tool-bar-mode -1)
(use-package org-modern-indent
:load-path "~/.emacs.d/org-modern-indent"
; or
; :straight (org-modern-indent :type git :host github :repo "jdtsmith/org-modern-indent"))
:config ; add late to hook
(add-hook 'org-mode-hook #'org-modern-indent-mode 90))
;;; Font style
(set-frame-font "Berkeley Mono 14" nil t)
(let ((font "Berkeley Mono 14"))
(set-frame-font font)
(add-to-list 'default-frame-alist
`(font . ,font)))
(global-visual-line-mode t)
;;; Window style
(add-to-list 'default-frame-alist '(height . 44))
(add-to-list 'default-frame-alist '(width . 172))
(add-to-list 'default-frame-alist '(ns-transparent-titlebar . t))
(add-to-list 'default-frame-alist '(ns-appearance . dark))
;;;(setq ns-use-proxy-icon nil)
(setq frame-title-format nil)
;;; THEME SETUP
;;; PACKAGE: robin-hood
(load-theme 'robin-hood t t)
(enable-theme 'robin-hood)
;;; Trailing Whitespaces
(setq require-final-newline t)
(add-hook 'write-file-hooks 'delete-trailing-whitespace)
(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
'("6a86067ea3608f4a53f25d11c2fc585677202bcd9cfd75090b90ad798a1c9605" default))
'(package-selected-packages
'(vertico org-side-tree orderless marginalia green-phosphor-theme smartscan org-mode speed-type jsonnet-mode yaml-mode tuareg org-sticky-header org-sticky-header-mode julia-mode elpy py-autopep8 goflymake go-flymake ## which-key dap-mode lsp-treemacs lsp-ivy helm-lsp lsp-ui lsp-mode git-gutter origami auto-complete editorconfig markdown-mode gitignore-mode gitginore gitginore-mode gitconfig-mode go-mode org-bullets poet-theme poet magit-find-file company-mode magit ido-completing-read+ ido-ubiquitous-mod ein fira-code-mode q-mode flycheck ample-theme use-package projectile parinfer cyberpunk-theme ampc ag)))
(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.
)
(load "~/.emacs.d/key-bindings")
(load "~/.emacs.d/ido-preferences")
(load "~/.emacs.d/bells")
(load "~/.emacs.d/backups")
(load "~/.emacs.d/packages")
(add-to-list 'auto-mode-alist '("\\.cls\\'" . java-mode))
(setq byte-compile-warnings '(cl-functions))
;; C-u C-c C-q
(setq org-tags-column 148)
(setq org-image-actual-width nil)
(provide 'init)
;;; init.el ends here