Created
June 27, 2014 19:39
-
-
Save mlabbe/d41260563c7a25f353ab to your computer and use it in GitHub Desktop.
compilation mode improvements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; 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