summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-11-28 08:38:49 -0500
committermattkae <mattkae@protonmail.com>2022-11-28 08:40:55 -0500
commit7e35d96a0475c5850589a745438e0393af9c7675 (patch)
tree7b77cc54f342cfbdba02b28616ae678ae212497c /lisp
parent1870d91f927687d44e2f343a07e735eca10cfbd6 (diff)
Added ability to fold regions in emacs
Diffstat (limited to 'lisp')
-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