branch: externals/ampc
commit 7289f2936569ea83bdde8eb1c8deb526edffa5d6
Author: Christopher Schmidt <christop...@ch.ristopher.com>
Commit: Christopher Schmidt <christop...@ch.ristopher.com>

    Add note on how to remap keys in ampc-mode-map.
---
 ampc.el | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/ampc.el b/ampc.el
index 108596ea32..7482eacdaa 100644
--- a/ampc.el
+++ b/ampc.el
@@ -158,6 +158,20 @@
 ;;
 ;; `T' (ampc-trigger-update): Trigger a database update.
 ;; `q' (ampc-quit): Quit ampc.
+;;
+;; The keymap of ampc is designed to fit the QWERTY United States keyboard
+;; layout.  If you use another keyboard layout, feel free to modify
+;; ampc-mode-map.  For example, I use a regular QWERTZ German keyboard 
(layout),
+;; so I modify ampc-mode-map in my init.el like this:
+;;
+;; (require 'ampc)
+;; (flet ((substitute-ampc-key
+;;         (from to)
+;;         (define-key ampc-mode-map to (lookup-key ampc-mode-map from))
+;;         (define-key ampc-mode-map from nil)))
+;;   (substitute-ampc-key (kbd "y") (kbd "z"))
+;;   (substitute-ampc-key (kbd "M-y") (kbd "M-z"))
+;;   (substitute-ampc-key (kbd "<") (kbd ";")))
 
 ;;; Code:
 ;;; * code

Reply via email to