File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
; ;; Code:
10
10
11
+ (require 'me-lib )
12
+
11
13
(use-package emacs
12
14
:hook (after-save . +save--guess-file-mode-h)
13
15
:hook (minibuffer-setup . cursor-intangible-mode) ; See the `minibuffer-prompt-properties' below
@@ -541,12 +543,15 @@ or file path may exist now."
541
543
(c-ts-mode-indent-style 'k&r ))
542
544
543
545
(use-package hideshow
544
- :hook ((prog-mode conf-mode nxml-mode) . hs-minor-mode) ; Hide/show code blocks, a.k.a. code folding
546
+ :hook ((prog-mode conf-mode nxml-mode) . + hs-minor-mode-maybe ) ; Hide/show code blocks, a.k.a. code folding
545
547
:custom
546
548
(hs-hide-comments-when-hiding-all nil )
547
549
:bind (:map hs-minor-mode-map
548
550
(" C-c f" . #'hs-toggle-hiding )
549
551
(" C-c F" . #'+hs-toggle-all ))
552
+ :init
553
+ (defun +hs-minor-mode-maybe () ; Fail sailently
554
+ (condition-case err (hs-minor-mode 1 ) (error (+log! " `hs-minor-mode' : %s" (error-message-string err)))))
550
555
:config
551
556
(defvar-local +hs-toggle-all-show nil )
552
557
(defun +hs-toggle-all ()
You can’t perform that action at this time.
0 commit comments