From de41de6eefd9c7527fd397420c994f8c2a31317d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 26 Jan 2026 19:29:55 -0500 Subject: Add emacs config --- .emacs.d/custom.el | 12 ++++++++++++ .emacs.d/init.el | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 .emacs.d/custom.el create mode 100644 .emacs.d/init.el diff --git a/.emacs.d/custom.el b/.emacs.d/custom.el new file mode 100644 index 0000000..b2680a7 --- /dev/null +++ b/.emacs.d/custom.el @@ -0,0 +1,12 @@ +(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 nil)) +(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. + ) diff --git a/.emacs.d/init.el b/.emacs.d/init.el new file mode 100644 index 0000000..e509da8 --- /dev/null +++ b/.emacs.d/init.el @@ -0,0 +1,49 @@ +(require 'package) +(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) +(package-initialize) + +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + +(use-package evil + :ensure t + :init + (setq evil-want-C-u-scroll t) + (setq evil-want-C-i-jump t) + + :config + (evil-mode 1)) + +(use-package which-key + :ensure t + :config + (which-key-mode 1)) + +(use-package xclip + :ensure t + :config + (xclip-mode 1)) + +(use-package doom-themes + :ensure t + :config + (load-theme 'doom-tokyo-night t)) + +;; Move auto-generated Customize code to custom.el +(setq custom-file (expand-file-name "custom.el" user-emacs-directory)) +(when (file-exists-p custom-file) + (load custom-file)) + +(use-package dumb-jump + :ensure t + :config + (add-hook 'xref-backend-functions #'dumb-jump-xref-activate)) + +(menu-bar-mode -1) ; Remove the menu bar (File Edit Options...) +(tool-bar-mode -1) ; Remove the tool bar (if using GUI) +(setq inhibit-startup-screen t) ; Skip the welcome screen + +;; Line numbers +(setq display-line-numbers-type 'relative) +(global-display-line-numbers-mode 1) -- cgit v1.2.3