From 2c70a79ac291c2fe2b5f7a292294ec14c29932bb Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 2 Sep 2017 18:15:37 -0400 Subject: [PATCH] Fix compilation scrolling change compilation scroll-up-aggressively to float, change compilation-scroll-output to first-error --- .emacs.d/init.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 02b2f08..9ee203b 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -8,8 +8,7 @@ (add-hook 'sh-mode-hook (lambda () (setq tab-width 4))) ;;;; various options -(setq compilation-scroll-output 1 - read-file-name-completion-ignore-case t +(setq read-file-name-completion-ignore-case t inhibit-startup-screen t vc-follow-symlinks t custom-file (expand-file-name "~/.emacs.d/custom.el") @@ -67,7 +66,9 @@ :bind (("C-z" . recompile) ("C-S-z" . compile)) :config - (add-hook 'compilation-start-hook (lambda (x) (setq-local scroll-up-aggressively 0)))) + (setq compilation-scroll-output 'first-error) + (add-hook 'compilation-start-hook + (lambda (x) (setq-local scroll-up-aggressively 0.0))) (use-package verilog-mode :defer