summaryrefslogtreecommitdiff
path: root/.emacs
blob: 819f687d7e345421976daa4d31a0a21d06e925e6 (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
;; disable redundant ui elements
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)

(ido-mode 1)

(setq font-lock-maximum-decoration t)
(setq inhibit-startup-screen t)

(defun line-number-hook ()
  (setq display-line-numbers-type 'relative)
  (display-line-numbers-mode +1)
  )
(add-hook 'text-mode-hook 'line-number-hook)
(add-hook 'prog-mode-hook 'line-number-hook)

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired.  See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
 (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.
 '(package-selected-packages '(## tree-sitter vterm)))
(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.
 )

(use-package vterm
    :ensure t)

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

;; Settings to make Emacs look more like the terminal
(modify-all-frames-parameters '((alpha-background . 80)))
(set-frame-font "Hack-9" nil t)
(setq-default line-spacing 0)

;; Tree sitter settings
(global-tree-sitter-mode)