aboutsummaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-03-26 18:36:38 -0400
committerEugene Triguba <hello@eugenetriguba.com>2026-03-26 18:36:38 -0400
commite82662ea518623ef6306dcaf73e57ef4a2d40f79 (patch)
treeb01a126bd2b1be2d62538939082b41e76c203031 /.emacs.d
parentAdjust markdown config for nvim (diff)
downloaddotfiles-e82662ea518623ef6306dcaf73e57ef4a2d40f79.zip
Move emacs config back to .emacs.d
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/custom.el12
-rw-r--r--.emacs.d/init.el45
2 files changed, 57 insertions, 0 deletions
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..c391857
--- /dev/null
+++ b/.emacs.d/init.el
@@ -0,0 +1,45 @@
+;; Setup package.el for installing packages.
+;; Use M-x list-packages to see what's available.
+(require 'package)
+(setq package-archives '(("melpa" . "https://melpa.org/packages/")
+ ("melpa-stable" . "https://stable.melpa.org/packages/")
+ ("elpa" . "https://elpa.gnu.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 nord-theme
+ :ensure t
+ :config
+ (load-theme 'nord t))
+
+(use-package eglot
+ :ensure t
+ :hook (python-mode . eglot-ensure)
+ :config
+ (add-to-list 'eglot-server-programs '(python-mode . ("ty" "server"))))
+
+(use-package surround
+ :ensure t
+ :bind-keymap ("M-'" . surround-keymap))
+
+;; 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)
+