From f8183d1e6e8e29b45b49ab835887364ef8b431bd Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 27 Feb 2022 10:45:24 +0800 Subject: Add more modes (emacs) --- .emacs.d/lisp/init-misc.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index 1772bbc..6675f22 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -27,6 +27,18 @@ (tool-bar-mode -1) (toggle-scroll-bar -1) (global-auto-revert-mode t) +(global-so-long-mode 1) + +(add-hook 'after-init-hook #'global-hl-line-mode) +(add-hook 'prog-mode-hook #'hs-minor-mode) ;; allow folding + +(use-package paren + :ensure nil + :init + (add-hook 'after-init-hook #'show-paren-mode) + :config + (setq show-paren-when-point-inside-paren t + show-paren-when-point-in-periphery t)) (use-package atom-one-dark-theme :ensure t -- cgit v1.2.3