summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-12-10 03:59:16 +0200
committerDrNuget <drnuget@outlook.com>2025-12-10 03:59:16 +0200
commit66ae82bedab6aa02e95e5bc70a732667cc255cf5 (patch)
treeb64cdaa4665d6386458fc86d4ec29649f8360230
parentbf3d8ffbe596f5400f3f7ef8226357c22889ba53 (diff)
downloaddotfiles-66ae82bedab6aa02e95e5bc70a732667cc255cf5.tar.gz
convert emacs config into org mode
-rw-r--r--.emacs71
-rw-r--r--.emacs.d/config.org148
2 files changed, 152 insertions, 67 deletions
diff --git a/.emacs b/.emacs
index 209a817..ff20d92 100644
--- a/.emacs
+++ b/.emacs
@@ -1,67 +1,4 @@
-;; 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)
-
-(setq-default indent-tabs-mode t)
-(setq-default tab-width 4)
-(setq-default indent-tabs-mode t)
-(defvaralias 'c-basic-offset 'tab-width)
-
-(setq electric-pair-pairs
- '(
- (?\" . ?\")
- (?\{ . ?\})
- (?\( . ?\))
- (?\[ . ?\])
- (?\' . ?\')
- ))
-(electric-pair-mode 1)
-
-(setq ring-bell-function 'ignore)
-
-(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)
+(org-babel-load-file
+ (expand-file-name
+ "config.org"
+ user-emacs-directory))
diff --git a/.emacs.d/config.org b/.emacs.d/config.org
new file mode 100644
index 0000000..208efd4
--- /dev/null
+++ b/.emacs.d/config.org
@@ -0,0 +1,148 @@
+#+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-default indent-tabs-mode t)
+(defvaralias 'c-basic-offset 'tab-width)
+
+#+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