diff --git a/settings.org b/settings.org index a2fae15..ebd5d73 100644 --- a/settings.org +++ b/settings.org @@ -215,9 +215,10 @@ This handy function is a customized ripoff of custom-save-all (setq meghanada-javac-xlint "-Xlint:all,-processing") (advice-add 'meghanada-code-beautify :around (lambda (old) (interactive) - (let ((p (point))) + (let ((p (line-number-at-pos))) (apply old nil) - (goto-char p)))) + (goto-line p) + (reposition-window)))) (defhydra hydra-meghanada (:hint nil :exit t) " ^Edit^ ^Tast or Task^