Skip to content

Commit

Permalink
Merge pull request #56 from jiacai2050/master
Browse files Browse the repository at this point in the history
fix easy-hugo-mode don't get activated after call easy-hugo
  • Loading branch information
masasam committed Dec 5, 2020
2 parents dffe165 + b05087c commit eef56fb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions easy-hugo.el
Original file line number Diff line number Diff line change
Expand Up @@ -2453,14 +2453,15 @@ output directories whose names match REGEXP."
(insert (concat (car lists) "\n"))
(pop lists))
(goto-char easy-hugo--cursor)
(if easy-hugo--refresh
(progn
(when (< (line-number-at-pos) easy-hugo--unmovable-line)
(goto-char (point-min))
(forward-line (- easy-hugo--unmovable-line 1)))
(beginning-of-line)
(forward-char easy-hugo--forward-char))
(forward-char easy-hugo--forward-char))
(ignore-error
(if easy-hugo--refresh
(progn
(when (< (line-number-at-pos) easy-hugo--unmovable-line)
(goto-char (point-min))
(forward-line (- easy-hugo--unmovable-line 1)))
(beginning-of-line)
(forward-char easy-hugo--forward-char))
(forward-char easy-hugo--forward-char)))
(easy-hugo-mode)
(when easy-hugo-emacspeak
(easy-hugo-emacspeak-filename)))))))
Expand Down

0 comments on commit eef56fb

Please sign in to comment.