Skip to content

Commit

Permalink
[hs-mode] udpate key bind to use hs level
Browse files Browse the repository at this point in the history
  • Loading branch information
mqcmd196 committed Oct 13, 2024
1 parent 1cdfe73 commit ad89dd2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions non-sudoer/emacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@
(global-set-key (kbd "C-c C-f C-u") 'hs-show-block)
(global-set-key (kbd "C-c C-f C-a C-f") 'hs-hide-all)
(global-set-key (kbd "C-c C-f C-a C-u") 'hs-show-all)
(global-set-key (kbd "C-c C-l") 'hs-hide-level)
10 changes: 9 additions & 1 deletion roles/emacs/doom/config/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
(setq doom-modeline-vcs-max-length 12)
(setq doom-modeline-github t)
(setq doom-modeline-github-interval (* 30 60))
(setq doom-modeline-checker-simple-format t))
(setq doom-modeline-check-simple-format t))

;; Key bindings
(map! "\C-h" 'backward-delete-char)
Expand Down Expand Up @@ -225,3 +225,11 @@
(add-to-list 'auto-mode-alist '("\\.action\\'" . gdb-script-mode))
(font-lock-add-keywords 'gdb-script-mode
'(("\\<\\(bool\\|byte\\|int8\\|uint8\\|int16\\|uint16\\|int32\\|uint32\\|int64\\|uint64\\|float32\\|float64\\|string\\|time\\|duration\\)\\>" . font-lock-builtin-face)) 'set)

;; fold: use hs-minor-mode instead of vimish
(after! vimish-fold
(remove-hook 'prog-mode-hook #'vimish-fold-mode))
(add-hook 'prog-mode-hook #'hs-minor-mode)
(use-package! hideshow
:bind
(("C-c C-l" . hs-hide-level)))

0 comments on commit ad89dd2

Please sign in to comment.