Fix compilation scrolling

change compilation scroll-up-aggressively to float, change
compilation-scroll-output to first-error
This commit is contained in:
Adam Goldsmith 2017-09-02 18:15:37 -04:00
parent 656f0d8b45
commit 2c70a79ac2
1 changed files with 4 additions and 3 deletions

View File

@ -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