From 9151c66f15da05ae5915fc68f9da5d76be495685 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 9 Sep 2024 23:56:41 +0200 Subject: emacs: Simplify code --- .config/emacs/init.el | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to '.config/emacs') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index f836a72..ea8f224 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -371,15 +371,10 @@ indentation-width.") (setq-local tab-width width evil-shift-width width) (dolist (var extra) - (set var width)))) - (mode-hook (intern (concat (symbol-name mode) "-hook"))) - (mode-ts (intern (concat - (string-remove-suffix - "-mode" (symbol-name mode)) - "-ts-mode")))) + (set var width))))) (dolist (hook (list (x-mode-to-hook mode) (x-mode-to-hook (x-mode-to-ts-mode mode)))) - (add-hook hook callback 95))))) + (add-hook hook callback 95))))) (x-set-indentation-settings) -- cgit v1.2.3