Emacs: Put keybindings for flycheck and smerge in their mode-maps.

This commit is contained in:
tastytea 2019-12-26 07:24:33 +01:00
parent 5991434fc0
commit 2cf765ea69

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-12-23T02:50:34+00:00>
;; Time-stamp: <2019-12-26T06:24:21+00:00>
;;; Commentary:
@ -49,9 +49,11 @@
(flycheck-add-mode 'css-csslint 'web-mode)
:bind
("<f5>" . flycheck-previous-error)
("<f6>" . flycheck-next-error)
("<f7>" . flycheck-list-errors)
(:map flycheck-mode-map
("<f5>" . flycheck-previous-error)
("<f6>" . flycheck-next-error)
("<f7>" . flycheck-list-errors)
)
)
) ; unless slow-computer.
@ -230,10 +232,14 @@
(use-package smerge
:ensure nil ; Builtin.
:defines (smerge-mode-map)
:bind
("C-<f5>" . smerge-prev)
("C-<f6>" . smerge-next)
("C-<f7>" . smerge-resolve)
(:map smerge-mode-map
("<f5>" . smerge-prev)
("<f6>" . smerge-next)
("<f7>" . smerge-resolve)
)
)
;; Git integration.