From 3bd85603000bbf89a463a60cbee8710de0a71db1 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 14 Mar 2026 13:01:10 -0400 Subject: Move emacs config to .config/emacs --- .config/emacs/custom.el | 12 ++++++++++++ .config/emacs/init.el | 41 +++++++++++++++++++++++++++++++++++++++++ .emacs.d/custom.el | 12 ------------ .emacs.d/init.el | 41 ----------------------------------------- 4 files changed, 53 insertions(+), 53 deletions(-) create mode 100644 .config/emacs/custom.el create mode 100644 .config/emacs/init.el delete mode 100644 .emacs.d/custom.el delete mode 100644 .emacs.d/init.el diff --git a/.config/emacs/custom.el b/.config/emacs/custom.el new file mode 100644 index 0000000..b2680a7 --- /dev/null +++ b/.config/emacs/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/.config/emacs/init.el b/.config/emacs/init.el new file mode 100644 index 0000000..66ab076 --- /dev/null +++ b/.config/emacs/init.el @@ -0,0 +1,41 @@ +(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 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)) + +(use-package eglot + :ensure t + :hook (python-mode . eglot-ensure) + :config + (add-to-list 'eglot-server-programs '(python-mode . ("ty" "server")))) + +;; 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)) + +(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) diff --git a/.emacs.d/custom.el b/.emacs.d/custom.el deleted file mode 100644 index b2680a7..0000000 --- a/.emacs.d/custom.el +++ /dev/null @@ -1,12 +0,0 @@ -(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 deleted file mode 100644 index 66ab076..0000000 --- a/.emacs.d/init.el +++ /dev/null @@ -1,41 +0,0 @@ -(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 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)) - -(use-package eglot - :ensure t - :hook (python-mode . eglot-ensure) - :config - (add-to-list 'eglot-server-programs '(python-mode . ("ty" "server")))) - -;; 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)) - -(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