Skip to content

Instantly share code, notes, and snippets.

@mlabbe
Created June 27, 2014 19:39
Show Gist options
  • Save mlabbe/d41260563c7a25f353ab to your computer and use it in GitHub Desktop.
Save mlabbe/d41260563c7a25f353ab to your computer and use it in GitHub Desktop.
compilation mode improvements
;
; compilation-mode improvements
;
(defun compilation-custom-hook ()
(visual-line-mode 1))
(add-hook 'compilation-mode-hook 'compilation-custom-hook)
(defun sludge-recompile-quietly ()
"Re-compile without changing the window configuration."
(interactive)
(save-window-excursion
(recompile)))
(defun sludge-next-error()
(interactive)
(save-window-excursion
(next-error)
))
(defun sludge-prev-error()
(interactive)
(save-window-excursion
(prev-error)
))
(global-set-key (kbd "C-x `") 'sludge-next-error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment