diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-14 13:01:10 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-14 13:01:10 -0400 |
| commit | 3bd85603000bbf89a463a60cbee8710de0a71db1 (patch) | |
| tree | c49c4fede4edf82e4537d163be152b1665f0894e /.config | |
| parent | Update nvim plugins (diff) | |
| download | dotfiles-3bd85603000bbf89a463a60cbee8710de0a71db1.zip | |
Move emacs config to .config/emacs
Diffstat (limited to '.config')
| -rw-r--r-- | .config/emacs/custom.el | 12 | ||||
| -rw-r--r-- | .config/emacs/init.el | 41 |
2 files changed, 53 insertions, 0 deletions
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) |