diff options
Diffstat (limited to '.emacs.d/config.org')
| -rw-r--r-- | .emacs.d/config.org | 147 |
1 files changed, 147 insertions, 0 deletions
diff --git a/.emacs.d/config.org b/.emacs.d/config.org new file mode 100644 index 0000000..9c058af --- /dev/null +++ b/.emacs.d/config.org @@ -0,0 +1,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 |
