branch: externals/auctex-cont-latexmk
commit 30694ac352b6cead9a662bdde1afea46b7dd9cc4
Author: Paul Nelson <[email protected]>
Commit: Paul Nelson <[email protected]>
make TAB switch from compilation buffer back to tex file
---
czm-tex-compile.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/czm-tex-compile.el b/czm-tex-compile.el
index 11259d5647..f9a1b37912 100644
--- a/czm-tex-compile.el
+++ b/czm-tex-compile.el
@@ -78,8 +78,16 @@
"*"))
(let ((command (concat czm-tex-compile-command " " name ".tex")))
(setq czm-tex-compile--process
- (start-process-shell-command "czm-tex-compile"
czm-tex-compile--compilation-buffer-name
- command)))
+ (start-process-shell-command
+ "czm-tex-compile" czm-tex-compile--compilation-buffer-name
+ command)))
+ (let ((current-buf (current-buffer)))
+ (with-current-buffer (get-buffer
czm-tex-compile--compilation-buffer-name)
+ (special-mode)
+ (local-set-key (kbd "TAB")
+ (lambda ()
+ (interactive)
+ (set-window-buffer (selected-window)
current-buf)))))
(add-hook 'kill-buffer-hook 'czm-tex-compile--kill-process nil t)
(add-hook 'flymake-diagnostic-functions #'czm-tex-compile-flymake nil
t)
(when czm-tex-compile--log-watch-timer