zk-phi / indent-guide

Show vertical lines to guide indentation
373 stars 24 forks source link

sometimes indent-guide will auto closed. #29

Closed stardiviner closed 9 years ago

stardiviner commented 9 years ago

I have Emacs version 25.0.50.2 And use the latest indent-guide from el-get.

And have this configuration.


(require 'indent-guide)

(setq indent-guide-delay nil ; nil, 0.1
      indent-guide-recursive t ; To show not only one guide line but all guide
                                        ; lines recursively, set “indent-guide-recursive”
                                        ; non-nil.
      indent-guide-inhibit-modes '(dired-mode Info-mode Man-mode)
      )

;;; custom indent line char
;; 1: use `indent-guide-char'.
(setq indent-guide-char "|")
(set-face-attribute 'indent-guide-face nil
                    :foreground "cyan"
                    :stipple nil)

;; 2: use face-attribute stipple pixmap data.
;; (setq indent-guide-char " ")
;; (if (equal indent-guide-char " ")
;;     (set-face-attribute 'indent-guide-face nil
;;                         :foreground "cyan"
;;                         :inherit nil
;;                         :stipple (list 7 4 (string 16 0 0 0))))

(indent-guide-post-command-hook)

;; (indent-guide-global-mode)
;; or
;; (lambda nil (unless (memq major-mode indent-guide-inhibit-modes) (indent-guide-mode 1)))

(dolist (hook '(prog-mode-hook
                emacs-lisp-mode-hook
                lisp-mode-hook
                clojure-mode-hook
                ruby-mode-hook
                python-mode-hook
                ))
  (add-hook hook #'indent-guide-mode))
zk-phi commented 9 years ago

Thanks for the report. "closed" means that the guide disappears unexpectedly right ?

stardiviner commented 9 years ago

@zk-phi yes.

zk-phi commented 9 years ago

thanks. could you let me know a situation that always reproduces the problem, if you found one?

stardiviner commented 9 years ago

Have not found specific patterns yet. I will update this issue when I figured it out. thanks for your check out.

zk-phi commented 9 years ago

(just a reminder)

zk-phi commented 9 years ago

maybe it no longer happens ? closing