From 696d02ab160dd35f51ed19ed61cf13ffbf298597 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 2 Dec 2023 22:42:47 +0300 Subject: chore(tazjin/emacs): minor configuration cleanups Deletes some stuff that I think isn't necessary anymore, and consolidates the modes.el content into settings.el. Change-Id: Ib682dbdb4eb89b3a7ee2eca89da4151af806a508 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10187 Reviewed-by: tazjin Tested-by: BuildkiteCI --- users/tazjin/emacs/config/settings.el | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'users/tazjin/emacs/config/settings.el') diff --git a/users/tazjin/emacs/config/settings.el b/users/tazjin/emacs/config/settings.el index 0ab15a5ac6bf..6c66ca608d6e 100644 --- a/users/tazjin/emacs/config/settings.el +++ b/users/tazjin/emacs/config/settings.el @@ -65,4 +65,25 @@ (go-mode . go-ts-mode) (cmake-mode . cmake-ts-mode))) +;; Visually highlight current line in programming buffers +(add-hook 'prog-mode-hook 'hl-line-mode) + +;; Enable rainbow-delimiters for all things programming +(add-hook 'prog-mode-hook 'rainbow-delimiters-mode) + +;; Always highlight matching brackets +(show-paren-mode 1) + +;; Always auto-close parantheses and other pairs +(electric-pair-mode) + +;; Keep track of recent files +(recentf-mode) + +;; Easily navigate sillycased words +(global-subword-mode 1) + +;; Transparently open compressed files +(auto-compression-mode t) + (provide 'settings) -- cgit 1.4.1