Emacs: Use <f5>/<f6> to go to prev/next error in compilation-mode.
This commit is contained in:
parent
6c69932c59
commit
25eeb3f159
|
@ -1,6 +1,6 @@
|
||||||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
;;; 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:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -10,18 +10,19 @@
|
||||||
|
|
||||||
(use-package emacs
|
(use-package emacs
|
||||||
:ensure nil
|
:ensure nil
|
||||||
|
:defines (compilation-mode-map)
|
||||||
:custom
|
:custom (compilation-scroll-output 'first-error)
|
||||||
(compilation-scroll-output 'first-error)
|
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(setq-default indent-tabs-mode nil ; Set default indentation.
|
(setq-default indent-tabs-mode nil ; Set default indentation.
|
||||||
tab-width 4)
|
tab-width 4)
|
||||||
(electric-pair-mode t) ; Auto-type closing brackets.
|
(electric-pair-mode t) ; Auto-type closing brackets.
|
||||||
|
|
||||||
:bind
|
:bind (("C-:" . ff-find-other-file) ; Switch between header and source.
|
||||||
;; Switch between header and implementation.
|
(:map compilation-mode-map
|
||||||
("C-:" . ff-find-other-file)
|
("<f5>" . compilation-previous-error)
|
||||||
|
("<f6>" . compilation-next-error)
|
||||||
|
))
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Guess indentation and if spaces or tabs are to be used.
|
;; Guess indentation and if spaces or tabs are to be used.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user