Skip to content

Commit

Permalink
tweak(hideif): do not enable by default
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jul 5, 2023
1 parent 541931f commit ec7fe35
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@
(unless (or (bound-and-true-p lsp-semantic-tokens-mode)
(bound-and-true-p lsp-semantic-tokens-enable))
(hide-ifdef-mode 1)))
(+add-hook! (c-mode c-ts-mode c++-mode c++-ts-mode cuda-mode opencl-mode)
:depth 101 #'+hide-ifdef-mode-maybe-h)
(defun +hide-ifdef-auto-enable ()
(interactive)
(if prefix-arg
(+remove-hook! (c-mode c-ts-mode c++-mode c++-ts-mode cuda-mode opencl-mode)
#'+hide-ifdef-mode-maybe-h)
(+add-hook! (c-mode c-ts-mode c++-mode c++-ts-mode cuda-mode opencl-mode)
:depth 101 #'+hide-ifdef-mode-maybe-h)))
:custom
(hide-ifdef-shadow t)
(hide-ifdef-initially t))
Expand Down

0 comments on commit ec7fe35

Please sign in to comment.