From 7e35d96a0475c5850589a745438e0393af9c7675 Mon Sep 17 00:00:00 2001 From: mattkae Date: Mon, 28 Nov 2022 08:38:49 -0500 Subject: Added ability to fold regions in emacs --- lisp/general.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lisp/general.el') diff --git a/lisp/general.el b/lisp/general.el index 33aeb2c..c5d71c4 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -21,6 +21,13 @@ ;; Tab mode (global-tab-line-mode t) +;; Ability to fold regions +(add-hook 'javascript-mode-hook (lambda () (hs-minor-mode 1))) +(add-hook 'typescript-mode-hook (lambda () (hs-minor-mode 1))) +(add-hook 'c-mode-hook (lambda () (hs-minor-mode 1))) +(add-hook 'python-mode-hook (lambda () (hs-minor-mode 1))) +(add-hook 'emacs-lisp-mode-hook (lambda () (hs-minor-mode 1))) + ;; Default Values (setq-default indent-tabs-mode nil) ; use spaces only if nil (setq-default tab-width 2) ; Assuming you want your tabs to be four spaces wide -- cgit v1.2.1