summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-11-29 23:55:55 +0200
committerDrNuget <drnuget@outlook.com>2025-11-29 23:55:55 +0200
commitd7a34bb3f6efb66bbef731a49640c7fe0353b2b5 (patch)
tree9fefaaf2b25d681ecbd3b7509a6d4f8bf2a1cae3 /.emacs
parent321b07556c51751b801afc7ae33f2368af2371a8 (diff)
downloaddotfiles-d7a34bb3f6efb66bbef731a49640c7fe0353b2b5.tar.gz
add emacs config and wip color theme
Diffstat (limited to '.emacs')
-rw-r--r--.emacs50
1 files changed, 50 insertions, 0 deletions
diff --git a/.emacs b/.emacs
new file mode 100644
index 0000000..9500199
--- /dev/null
+++ b/.emacs
@@ -0,0 +1,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)
+
+(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)
+
+;; 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
+(tree-sitter-require 'c)
+(global-tree-sitter-mode)