X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/7e50381192d916a5034b87956725b5b86a9c58a2..941c29ba3925c6c22dbb9ec1e31d41ce837dde6f:/el/dot-emacs.el diff --git a/el/dot-emacs.el b/el/dot-emacs.el index cd0ee10..e4e7f8d 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2237,7 +2237,7 @@ (defun mdw-outline-collapse-all () (setq hs-hide-comments-when-hiding-all nil) (defadvice hs-hide-all (after hide-first-comment activate) - (hs-hide-initial-comment-block)) + (save-excursion (hs-hide-initial-comment-block))) ;;;-------------------------------------------------------------------------- ;;; Shell mode.