From e2fddd45ecc38c404465177f73c699adff808dcd Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Sun, 27 Oct 2019 20:34:15 -0500 Subject: [PATCH] Meghanada-code-beautify always moved to start of buffer --- settings.org | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/settings.org b/settings.org index 91a9e45..a2fae15 100644 --- a/settings.org +++ b/settings.org @@ -213,6 +213,11 @@ This handy function is a customized ripoff of custom-save-all (setq indent-tabs-mode nil) (setq meghanada-server-remote-debug t) (setq meghanada-javac-xlint "-Xlint:all,-processing") + (advice-add 'meghanada-code-beautify :around (lambda (old) + (interactive) + (let ((p (point))) + (apply old nil) + (goto-char p)))) (defhydra hydra-meghanada (:hint nil :exit t) " ^Edit^ ^Tast or Task^