summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/general.el7
1 files changed, 7 insertions, 0 deletions
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