From 03d1906f53ea503dd9085a9d1cb3f93e015cc5b7 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 4 Dec 2024 21:53:50 +0400 Subject: [PATCH] asdfjkl;asdfjk;lasdfj;klasfdk;lasdfl;asdfkjasdfjksadf;kljasdf;l --- config/emacs/.gitignore | 1 + config/emacs/init.el | 22 +++++++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 config/emacs/.gitignore diff --git a/config/emacs/.gitignore b/config/emacs/.gitignore new file mode 100644 index 00000000..d0ee68db --- /dev/null +++ b/config/emacs/.gitignore @@ -0,0 +1 @@ +flycheck_init.el \ No newline at end of file diff --git a/config/emacs/init.el b/config/emacs/init.el index 39a97f44..8d139a4d 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -1,11 +1,12 @@ -;; -*- lexical-binding: t; -*- -;; Sako's terrible eMacs config! +;;; init.el --- Sako's terrible eMacs config -*- lexical-binding: t; -*- +;;; Commentary: ;; Lots of things missing but its whats needed ;; TODO(sako):: Setup mu4e ;; TODO(sako):: Setup irc (erc/rcirc) ;; TODO(sako):: Setup elfeed ;; TODO(sako):: Setup elcord +;;; Code: ;; --- Display Options --- (scroll-bar-mode -1) @@ -19,12 +20,10 @@ (repeat-mode 1) (column-number-mode) -(setq display-line-numbers 'relative) - (dolist (mode '(text-mode-hook prog-mode-hook conf-mode-hook)) - (add-hook mode (lambda () (display-line-numbers-mode 1)))) + (add-hook mode (lambda () (setq display-line-numbers 'relative) (display-line-numbers-mode 1)))) (set-face-attribute 'default nil :font "JetBrainsMono NF" @@ -77,6 +76,13 @@ ;; --- no-littering --- +(setq backup-directory-alist '(("." . "~/.emacs.d/backup")) + backup-by-copying t + version-control t + delete-old-versions t + kept-new-versions 20 + kept-old-versions 5) + (use-package no-littering :config (setq custom-file (if (boundp 'server-socket-dir) @@ -308,6 +314,10 @@ :ensure nil :config (eglot-booster-mode))) +;; +;; --- Languages --- +;; + ;; --- Org-Mode --- (use-package org :ensure t @@ -357,3 +367,5 @@ (use-package org-pomodoro :ensure t) + +;;; init.el ends here