Emacs: Use <f5>/<f6> to go to prev/next error in compilation-mode.

This commit is contained in:
tastytea 2020-02-27 04:37:07 +01:00
parent 6c69932c59
commit 25eeb3f159
1 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-02-12T14:39:05+0100>
;; Time-stamp: <2020-02-27T04:35:24+0100>
;;; Commentary:
@ -10,18 +10,19 @@
(use-package emacs
:ensure nil
:custom
(compilation-scroll-output 'first-error)
:defines (compilation-mode-map)
:custom (compilation-scroll-output 'first-error)
:config
(setq-default indent-tabs-mode nil ; Set default indentation.
tab-width 4)
(electric-pair-mode t) ; Auto-type closing brackets.
:bind
;; Switch between header and implementation.
("C-:" . ff-find-other-file)
:bind (("C-:" . ff-find-other-file) ; Switch between header and source.
(:map compilation-mode-map
("<f5>" . compilation-previous-error)
("<f6>" . compilation-next-error)
))
)
;; Guess indentation and if spaces or tabs are to be used.