summaryrefslogtreecommitdiff
path: root/.emacs.d/config.org
blob: 9c058af21be8a99c8a893a1c603213cfd4ea833f (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#+TITLE: DrNuget's Emacs config
#+AUTHOR: DrNuget
#+STARTUP: showeverything

* Disable redundant ui elements

#+begin_src emacs-lisp

(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)

(setq ring-bell-function 'ignore)

  
#+end_src

* Enabled modes

#+begin_src emacs-lisp

(ido-mode 1)
(electric-pair-mode 1)

#+end_src

* Line numbering

#+begin_src emacs-lisp

(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)

#+end_src

* Indentation

#+begin_src emacs-lisp

(setq-default indent-tabs-mode t)
(setq-default tab-width 4)
(setq indent-line-function 'insert-tab)

#+end_src

* Autopairs

#+begin_src emacs-lisp

(setq electric-pair-pairs
	  '(
		(?\" . ?\")
		(?\{ . ?\})
		(?\( . ?\))
		(?\[ . ?\])
		(?\' . ?\')
		))

#+end_src

* MELPA

#+begin_src emacs-lisp

(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.
 '(custom-safe-themes
   '("f222c303b514c79fb79c3907a34102f888d6b473a4367c6366a9f10142bf0297"
	 "cb86bb04d8c43cb305fa8456e5ebbf278a53a828cf5a1584b25775bf6e3e0c05"
	 "a3ca3e616433bea2d6060672701f12caefb8aff9cfdb20923fbbec8efb4e8024"
	 "2eda8a24f66e6a1a4ebe8445c3bdcc2edb521234c475dabe1e037867a7650094"
	 "85af9fd7eabcbf051ddbcdfd13c8874e3e8483e879614a56ae6f5c190517a069"
	 default))
 '(package-selected-packages '(## org-modern power-mode 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.
 )

#+end_src

* VTerm

#+begin_src emacs-lisp

(use-package vterm
    :ensure t)

#+end_src
    
* Load custom theme

#+begin_src emacs-lisp

(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
(load-theme 'materia :no-confirm)
  
(setq font-lock-maximum-decoration t)
(setq inhibit-startup-screen t)

#+end_src

* Settings to make Emacs look more like the terminal

#+begin_src emacs-lisp

(modify-all-frames-parameters '((alpha-background . 80)))
(set-frame-font "Hack-9" nil t)

(setq-default line-spacing 0)

#+end_src


* Tree sitter settings

#+begin_src emacs-lisp

(global-tree-sitter-mode)
  
#+end_src

* ORG Mode

#+begin_src emacs-lisp

(use-package org)

(setq org-hide-emphasis-markers t)

#+end_src